namespace ?? null; $service = $this->service ?? null; $name = $this->name ?? null; if (isset($namespace) && isset($service) && isset($name)) { return "/_security/service/$namespace/$service/credential/token/$name/_clear_cache"; } throw new RuntimeException('Missing parameter for the endpoint security.clear_cached_service_tokens'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'POST'; } public function setNamespace($namespace): ClearCachedServiceTokens { if (isset($namespace) !== true) { return $this; } $this->namespace = $namespace; return $this; } public function setService($service): ClearCachedServiceTokens { if (isset($service) !== true) { return $this; } $this->service = $service; return $this; } public function setName($name): ClearCachedServiceTokens { if (isset($name) !== true) { return $this; } if (is_array($name) === true) { $name = implode(",", $name); } $this->name = $name; return $this; } }