for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* This file is part of the Tmdb package.
*
* (c) Vincent Faliès <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @author Vincent Faliès <[email protected]>
* @copyright Copyright (c) 2017
*/
namespace VfacTmdb\Items;
use VfacTmdb\Abstracts\Items\PeopleItemCredit;
use VfacTmdb\Exceptions\TmdbException;
use VfacTmdb\Interfaces\TmdbInterface;
use VfacTmdb\Results\PeopleMovieCast;
use VfacTmdb\Results\PeopleMovieCrew;
* People Movie Credit class
* @package Tmdb
class PeopleMovieCredit extends PeopleItemCredit
{
public function __construct(TmdbInterface $tmdb, int $people_id, array $options = array())
try {
$this->crew_class = PeopleMovieCrew::class;
$this->cast_class = PeopleMovieCast::class;
parent::__construct($tmdb, 'movie', $people_id, $options);
} catch (TmdbException $ex) {
throw $ex;
}