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