username)) { throw new RuntimeException('Missing parameter for the endpoint security.delete_user'); } return "/_plugins/_security/api/internalusers/$this->username"; } public function getMethod(): string { return 'DELETE'; } /** * @param string|null $username * @return DeleteUser */ public function setUsername(?string $username): DeleteUser { $this->username = $username; return $this; } }