name ?? null; if (isset($name)) { return "/_cat/templates/$name"; } return "/_cat/templates"; } public function getParamWhitelist(): array { return [ 'format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'cluster_manager_timeout' ]; } public function getMethod(): string { return 'GET'; } public function setName($name): Templates { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } protected function getParamDeprecation(): array { return ['master_timeout' => 'cluster_manager_timeout']; } }