index ?? null; if (isset($index)) { return "/$index/_flush/synced"; } return "/_flush/synced"; } public function getParamWhitelist(): array { return [ 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards' ]; } public function getMethod(): string { return 'POST'; } }