name ?? null; if (isset($name)) { return "/_index_template/$name"; } throw new RuntimeException('Missing parameter for the endpoint indices.exists_index_template'); } public function getParamWhitelist(): array { return [ 'flat_settings', 'master_timeout', 'local' ]; } public function getMethod(): string { return 'HEAD'; } public function setName($name): ExistsIndexTemplate { if (isset($name) !== true) { return $this; } $this->name = $name; return $this; } }