id) !== true) { throw new RuntimeException( 'id is required for get' ); } $id = $this->id; if (isset($this->index) !== true) { throw new RuntimeException( 'index is required for get' ); } $index = $this->index; return "/$index/_doc/$id"; } public function getParamWhitelist(): array { return [ 'stored_fields', 'preference', 'realtime', 'refresh', 'routing', '_source', '_source_excludes', '_source_includes', 'version', 'version_type' ]; } public function getMethod(): string { return 'GET'; } }