public function search(Search $options)
    {
        $url = $this->getUrl('venues/search', $options->parametrise());

        $response = $this->httpClient->get($url, $this->getDefaultHeaders());

        $content = $this->parseResponse($response);

        if (!isset($content->response->venues)) {
            throw InvalidResponseException::invalidResponseBody($response, 'response.venues');
        }

        return array_map(function (\stdClass $venueDescription) {
            return $this->venueFactory->create(new Description($venueDescription));
        }, $content->response->venues);
    }
public function search(Search $options)
    {
        $url = $this->getUrl('venues/search', $options->parametrise());

        $response = $this->httpClient->get($url, $this->getDefaultHeaders());

        $content = $this->parseResponse($response);

        if (!isset($content->response->venues)) {
            throw InvalidResponseException::invalidResponseBody($response, 'response.venues');
        }

        return array_map(function (\stdClass $venueDescription) {
            return $this->venueFactory->create(new Description($venueDescription));
        }, $content->response->venues);
    }
public function search ( Search $ options ) { $ url = $ this -> getUrl ( 'venues/search' , $ options -> parametrise ( ) ) ; $ response = $ this -> httpClient -> get ( $ url , $ this -> getDefaultHeaders ( ) ) ; $ content = $ this -> parseResponse ( $ response ) ; if ( ! isset ( $ content -> response -> venues ) ) { throw InvalidResponseException :: invalidResponseBody ( $ response , 'response.venues' ) ; } return array_map ( function ( \ stdClass $ venueDescription ) { return $ this -> venueFactory -> create ( new Description ( $ venueDescription ) ) ; } , $ content -> response -> venues ) ; }
Search venues.

@param Search $options The search options.

@return Venue[]
Search venues .