index ?? null; $type = $this->type ?? null; if (isset($type)) { @trigger_error('Specifying types in urls has been deprecated', E_USER_DEPRECATED); } if (isset($index) && isset($type)) { return "/$index/_mapping/$type"; } throw new RuntimeException('Missing parameter for the endpoint indices.exists_type'); } public function getParamWhitelist(): array { return [ 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'local' ]; } public function getMethod(): string { return 'HEAD'; } }