namespace ?? null; $service = $this->service ?? null; if (isset($namespace) && isset($service)) { return "/_security/service/$namespace/$service"; } if (isset($namespace)) { return "/_security/service/$namespace"; } return "/_security/service"; } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'GET'; } public function setNamespace($namespace): GetServiceAccounts { if (isset($namespace) !== true) { return $this; } $this->namespace = $namespace; return $this; } public function setService($service): GetServiceAccounts { if (isset($service) !== true) { return $this; } $this->service = $service; return $this; } }