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

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

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

        if (!isset($content->response->groups[0]->items)) {
            throw InvalidResponseException::invalidResponseBody($response, 'response.groups[0].items');
        }

        return array_map(function (\stdClass $itemDescription) {
            return $this->venueFactory->create(new Description($itemDescription->venue));
        }, $content->response->groups[0]->items);
    }
public function explore(Explore $options)
    {
        $url = $this->getUrl('venues/explore', $options->parametrise());

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

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

        if (!isset($content->response->groups[0]->items)) {
            throw InvalidResponseException::invalidResponseBody($response, 'response.groups[0].items');
        }

        return array_map(function (\stdClass $itemDescription) {
            return $this->venueFactory->create(new Description($itemDescription->venue));
        }, $content->response->groups[0]->items);
    }
public function explore ( Explore $ options ) { $ url = $ this -> getUrl ( 'venues/explore' , $ options -> parametrise ( ) ) ; $ response = $ this -> httpClient -> get ( $ url , $ this -> getDefaultHeaders ( ) ) ; $ content = $ this -> parseResponse ( $ response ) ; if ( ! isset ( $ content -> response -> groups [ 0 ] -> items ) ) { throw InvalidResponseException :: invalidResponseBody ( $ response , 'response.groups[0].items' ) ; } return array_map ( function ( \ stdClass $ itemDescription ) { return $ this -> venueFactory -> create ( new Description ( $ itemDescription -> venue ) ) ; } , $ content -> response -> groups [ 0 ] -> items ) ; }
Explore venues.

@param Explore $options The explore options.

@return Venue[]
Explore venues .