index ?? null; if (isset($index)) { return "/$index/_close"; } throw new RuntimeException('Missing parameter for the endpoint indices.close'); } public function getParamWhitelist(): array { return [ 'timeout', 'master_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'wait_for_active_shards', 'cluster_manager_timeout' ]; } public function getMethod(): string { return 'POST'; } protected function getParamDeprecation(): array { return ['master_timeout' => 'cluster_manager_timeout']; } }