| @@ 29-42 (lines=14) @@ | ||
| 26 | * @author Vincent Faliès <[email protected]> |
|
| 27 | * @copyright Copyright (c) 2017 |
|
| 28 | */ |
|
| 29 | class PeopleMovieCredit extends PeopleItemCredit |
|
| 30 | { |
|
| 31 | public function __construct(TmdbInterface $tmdb, int $people_id, array $options = array()) |
|
| 32 | { |
|
| 33 | try { |
|
| 34 | $this->crew_class = PeopleMovieCrew::class; |
|
| 35 | $this->cast_class = PeopleMovieCast::class; |
|
| 36 | ||
| 37 | parent::__construct($tmdb, 'movie', $people_id, $options); |
|
| 38 | } catch (TmdbException $ex) { |
|
| 39 | throw $ex; |
|
| 40 | } |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| @@ 29-42 (lines=14) @@ | ||
| 26 | * @author Vincent Faliès <[email protected]> |
|
| 27 | * @copyright Copyright (c) 2017 |
|
| 28 | */ |
|
| 29 | class PeopleTVShowCredit extends PeopleItemCredit |
|
| 30 | { |
|
| 31 | public function __construct(TmdbInterface $tmdb, int $people_id, array $options = array()) |
|
| 32 | { |
|
| 33 | try { |
|
| 34 | $this->crew_class = PeopleTVShowCrew::class; |
|
| 35 | $this->cast_class = PeopleTVShowCast::class; |
|
| 36 | ||
| 37 | parent::__construct($tmdb, 'tv', $people_id, $options); |
|
| 38 | } catch (TmdbException $ex) { |
|
| 39 | throw $ex; |
|
| 40 | } |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||