role)) { throw new RuntimeException('Missing parameter for the endpoint security.delete_role'); } return "/_plugins/_security/api/roles/$this->role"; } public function getMethod(): string { return 'DELETE'; } /** * @param string|null $role * @return DeleteRole */ public function setRole(?string $role): DeleteRole { $this->role = $role; return $this; } }