for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace vfalies\tmdb;
use vfalies\tmdb\Catalogs\Genres;
class Catalog
{
private $tmdb = null;
/**
* Constructor
* @param \vfalies\tmdb\Tmdb $tmdb
*/
public function __construct(Tmdb $tmdb)
$this->tmdb = $tmdb;
}
* Get movie genres list
* @param array $options
* @return \Generator
public function getMovieGenres(array $options = array()): \Generator
$catalog = new Genres($this->tmdb);
return $catalog->getMovieList($options);
* Get TVShow genres list
public function getTVShowGenres(array $options = array()): \Generator
return $catalog->getTVList($options);