application ?? null; if (isset($application)) { return "/_security/privilege/$application/_clear_cache"; } throw new RuntimeException('Missing parameter for the endpoint security.clear_cached_privileges'); } public function getParamWhitelist(): array { return [ ]; } public function getMethod(): string { return 'POST'; } public function setApplication($application): ClearCachedPrivileges { if (isset($application) !== true) { return $this; } if (is_array($application) === true) { $application = implode(",", $application); } $this->application = $application; return $this; } }