index ?? null; if (isset($index)) { return "/$index/_field_usage_stats"; } throw new RuntimeException('Missing parameter for the endpoint indices.field_usage_stats'); } public function getParamWhitelist(): array { return [ 'fields', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards' ]; } public function getMethod(): string { return 'GET'; } }