/** * @throws RequestException * @param SearchRequest $searchRequest * @return SearchResult */ public function sendSearchRequest(SearchRequest $searchRequest) { $requestUrl = $this->createRequestUrl(static::ACTION_SEARCH) . '?' . $searchRequest->getQuery(); $response = $this->client->get($requestUrl); return new SearchResult($response->getBody()); }
public function build() { return SearchRequest::build($this); }