id ?? null; if (isset($id)) { return "/_async_search/$id"; } throw new RuntimeException('Missing parameter for the endpoint async_search.get'); } public function getParamWhitelist(): array { return [ 'wait_for_completion_timeout', 'keep_alive', 'typed_keys' ]; } public function getMethod(): string { return 'GET'; } }