for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace vfalies\tmdb;
use vfalies\tmdb\Items\Movie;
use vfalies\tmdb\Items\Collection;
use vfalies\tmdb\Items\TVShow;
class Item
{
private $tmdb = null;
/**
* Constructor
* @param \vfalies\tmdb\Tmdb $tmdb
*/
public function __construct(Tmdb $tmdb)
$this->tmdb = $tmdb;
}
* Get movie details
* @param int $movie_id
* @param array $options
* @return \vfalies\tmdb\Items\Movie
public function getMovie(int $movie_id, array $options = array()): Movie
$movie = new Movie($this->tmdb, $movie_id, $options);
return $movie;
* Get collection details
* @param int $collection_id
* @return \vfalies\tmdb\Items\Collection
public function getCollection(int $collection_id, array $options = array()): Collection
$collection = new Collection($this->tmdb, $collection_id, $options);
return $collection;
* Get TV Show details
* @param int $tv_id
* @return \vfalies\tmdb\Items\TVShow
public function getTVShow(int $tv_id, array $options = array()): TVShow
$tv = new TVShow($this->tmdb, $tv_id, $options);
return $tv;