/**
  * Get trending venues.
  *
  * @param Trending $options The trending options.
  *
  * @return Venue[]
  */
 public function trending(Trending $options)
 {
     $url = $this->getUrl('venues/trending', $options->toArray());
     $response = $this->httpClient->get($url, $this->getDefaultHeaders());
     $description = $this->parseResponse($response);
     if (!isset($description->response->venues)) {
         throw InvalidResponseException::invalidResponseBody($response, 'response.venues');
     }
     return array_map(function (\stdClass $venueDescription) {
         return $this->venueFactory->create($venueDescription);
     }, $description->response->venues);
 }
 /**
  * Provides options.
  *
  * @return array
  */
 public function optionsProvider()
 {
     return [[Trending::createWithCoordinates(new Coordinates(40.12, 50.12))->setRadius(10)->setLimit(50), ['ll' => new Coordinates(40.12, 50.12), 'radius' => 10, 'limit' => 50]], [Trending::createWithCoordinates(new Coordinates(40.12, 50.12))->setRadius(10), ['ll' => new Coordinates(40.12, 50.12), 'radius' => 10]]];
 }