name ?? null; if (isset($name)) { return "/_security/role/$name"; } throw new RuntimeException('Missing parameter for the endpoint security.delete_role'); } public function getParamWhitelist(): array { return [ 'refresh' ]; } public function getMethod(): string { return 'DELETE'; } public function setName($name): DeleteRole { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } }