/** * Discover TV shows by different types of data like average rating, * number of votes, genres, the network they aired on and air dates. * * @param DiscoverTvQuery $query * @param array $headers * @return Tv[] * @return \Tmdb\Model\Common\GenericCollection */ public function discoverTv(DiscoverTvQuery $query, array $headers = array()) { $data = $this->getApi()->discoverTv($query->toArray(), $headers); return $this->getTvFactory()->createResultCollection($data); }