| @@ 26-160 (lines=135) @@ | ||
| 23 | * @author Vincent Faliès <[email protected]> |
|
| 24 | * @copyright Copyright (c) 2017 |
|
| 25 | */ |
|
| 26 | class Cast extends Results implements CastResultsInterface |
|
| 27 | { |
|
| 28 | /** |
|
| 29 | * Character name |
|
| 30 | * @var string |
|
| 31 | */ |
|
| 32 | protected $character = null; |
|
| 33 | /** |
|
| 34 | * Gender |
|
| 35 | * @var string |
|
| 36 | */ |
|
| 37 | protected $gender = null; |
|
| 38 | /** |
|
| 39 | * Credit Id |
|
| 40 | * @var string |
|
| 41 | */ |
|
| 42 | protected $credit_id = null; |
|
| 43 | /** |
|
| 44 | * Cast Id |
|
| 45 | * @var int |
|
| 46 | */ |
|
| 47 | protected $cast_id = null; |
|
| 48 | /** |
|
| 49 | * Name |
|
| 50 | * @var string |
|
| 51 | */ |
|
| 52 | protected $name = null; |
|
| 53 | /** |
|
| 54 | * Image profile path |
|
| 55 | * @var string |
|
| 56 | */ |
|
| 57 | protected $profile_path = null; |
|
| 58 | /** |
|
| 59 | * Order in cast |
|
| 60 | * @var int |
|
| 61 | */ |
|
| 62 | protected $order = null; |
|
| 63 | /** |
|
| 64 | * Id |
|
| 65 | * @var int |
|
| 66 | */ |
|
| 67 | protected $id = null; |
|
| 68 | ||
| 69 | /** |
|
| 70 | * Constructor |
|
| 71 | * @param \vfalies\tmdb\Interfaces\TmdbInterface $tmdb |
|
| 72 | * @param \stdClass $result |
|
| 73 | */ |
|
| 74 | public function __construct(TmdbInterface $tmdb, \stdClass $result) |
|
| 75 | { |
|
| 76 | parent::__construct($tmdb, $result); |
|
| 77 | ||
| 78 | $this->id = $this->data->id; |
|
| 79 | $this->character = $this->data->character; |
|
| 80 | $this->gender = $this->data->gender; |
|
| 81 | $this->credit_id = $this->data->credit_id; |
|
| 82 | $this->cast_id = $this->data->cast_id; |
|
| 83 | $this->name = $this->data->name; |
|
| 84 | $this->profile_path = $this->data->profile_path; |
|
| 85 | $this->order = $this->data->order; |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * Get Id |
|
| 90 | * @return int |
|
| 91 | */ |
|
| 92 | public function getId() |
|
| 93 | { |
|
| 94 | return (int) $this->id; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * Get credit Id |
|
| 99 | * @return string |
|
| 100 | */ |
|
| 101 | public function getCreditId() |
|
| 102 | { |
|
| 103 | return $this->credit_id; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Get character name |
|
| 108 | * @return string |
|
| 109 | */ |
|
| 110 | public function getCharacter() |
|
| 111 | { |
|
| 112 | return $this->character; |
|
| 113 | } |
|
| 114 | ||
| 115 | /** |
|
| 116 | * Get gender |
|
| 117 | * @return string |
|
| 118 | */ |
|
| 119 | public function getGender() |
|
| 120 | { |
|
| 121 | return $this->gender; |
|
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * Get Cast Id |
|
| 126 | * @return int |
|
| 127 | */ |
|
| 128 | public function getCastId() |
|
| 129 | { |
|
| 130 | return $this->cast_id; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * Get name |
|
| 135 | * @return string |
|
| 136 | */ |
|
| 137 | public function getName() |
|
| 138 | { |
|
| 139 | return $this->name; |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * Get profile path |
|
| 144 | * @return string |
|
| 145 | */ |
|
| 146 | public function getProfilePath() |
|
| 147 | { |
|
| 148 | return $this->profile_path; |
|
| 149 | } |
|
| 150 | ||
| 151 | /** |
|
| 152 | * Get Order |
|
| 153 | * @return int |
|
| 154 | */ |
|
| 155 | public function getOrder() |
|
| 156 | { |
|
| 157 | return $this->order; |
|
| 158 | } |
|
| 159 | ||
| 160 | } |
|
| 161 | ||
| @@ 26-167 (lines=142) @@ | ||
| 23 | * @author Vincent Faliès <[email protected]> |
|
| 24 | * @copyright Copyright (c) 2017 |
|
| 25 | */ |
|
| 26 | class PeopleMovieCast extends Results |
|
| 27 | { |
|
| 28 | ||
| 29 | /** |
|
| 30 | * Adult |
|
| 31 | * @var boolean |
|
| 32 | */ |
|
| 33 | protected $adult = null; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Character name |
|
| 37 | * @var string |
|
| 38 | */ |
|
| 39 | protected $character = null; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * Credit Id |
|
| 43 | * @var string |
|
| 44 | */ |
|
| 45 | protected $credit_id = null; |
|
| 46 | ||
| 47 | /** |
|
| 48 | * title |
|
| 49 | * @var string |
|
| 50 | */ |
|
| 51 | protected $title = null; |
|
| 52 | ||
| 53 | /** |
|
| 54 | * Image poster path |
|
| 55 | * @var string |
|
| 56 | */ |
|
| 57 | protected $poster_path = null; |
|
| 58 | ||
| 59 | /** |
|
| 60 | * original title |
|
| 61 | * @var string |
|
| 62 | */ |
|
| 63 | protected $original_title = null; |
|
| 64 | ||
| 65 | /** |
|
| 66 | * Release date |
|
| 67 | * @var string |
|
| 68 | */ |
|
| 69 | protected $release_date = null; |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Id |
|
| 73 | * @var int |
|
| 74 | */ |
|
| 75 | protected $id = null; |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Constructor |
|
| 79 | * @param \vfalies\tmdb\Interfaces\TmdbInterface $tmdb |
|
| 80 | * @param \stdClass $result |
|
| 81 | */ |
|
| 82 | public function __construct(TmdbInterface $tmdb, \stdClass $result) |
|
| 83 | { |
|
| 84 | parent::__construct($tmdb, $result); |
|
| 85 | ||
| 86 | $this->id = $this->data->id; |
|
| 87 | $this->adult = $this->data->adult; |
|
| 88 | $this->character = $this->data->character; |
|
| 89 | $this->credit_id = $this->data->credit_id; |
|
| 90 | $this->original_title = $this->data->original_title; |
|
| 91 | $this->title = $this->data->title; |
|
| 92 | $this->poster_path = $this->data->poster_path; |
|
| 93 | $this->release_date = $this->data->release_date; |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Get Id |
|
| 98 | * @return int |
|
| 99 | */ |
|
| 100 | public function getId() |
|
| 101 | { |
|
| 102 | return (int) $this->id; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * Get credit Id |
|
| 107 | * @return string |
|
| 108 | */ |
|
| 109 | public function getCreditId() |
|
| 110 | { |
|
| 111 | return $this->credit_id; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Get character name |
|
| 116 | * @return string |
|
| 117 | */ |
|
| 118 | public function getCharacter() |
|
| 119 | { |
|
| 120 | return $this->character; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Get title |
|
| 125 | * @return string |
|
| 126 | */ |
|
| 127 | public function getTitle() |
|
| 128 | { |
|
| 129 | return $this->title; |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * Get original title |
|
| 134 | * @return string |
|
| 135 | */ |
|
| 136 | public function getOriginalTitle() |
|
| 137 | { |
|
| 138 | return $this->original_title; |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * Get poster path |
|
| 143 | * @return string |
|
| 144 | */ |
|
| 145 | public function getPosterPath() |
|
| 146 | { |
|
| 147 | return $this->poster_path; |
|
| 148 | } |
|
| 149 | ||
| 150 | /** |
|
| 151 | * Get release date |
|
| 152 | * @return string |
|
| 153 | */ |
|
| 154 | public function getReleaseDate() |
|
| 155 | { |
|
| 156 | return $this->release_date; |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * Adult |
|
| 161 | * @return boolean |
|
| 162 | */ |
|
| 163 | public function getAdult() |
|
| 164 | { |
|
| 165 | return $this->adult; |
|
| 166 | } |
|
| 167 | } |
|
| 168 | ||
| @@ 26-168 (lines=143) @@ | ||
| 23 | * @author Vincent Faliès <[email protected]> |
|
| 24 | * @copyright Copyright (c) 2017 |
|
| 25 | */ |
|
| 26 | class PeopleTVShowCast extends Results |
|
| 27 | { |
|
| 28 | ||
| 29 | /** |
|
| 30 | * Character name |
|
| 31 | * @var string |
|
| 32 | */ |
|
| 33 | protected $character = null; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Credit Id |
|
| 37 | * @var string |
|
| 38 | */ |
|
| 39 | protected $credit_id = null; |
|
| 40 | ||
| 41 | /** |
|
| 42 | * name |
|
| 43 | * @var string |
|
| 44 | */ |
|
| 45 | protected $name = null; |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Image poster path |
|
| 49 | * @var string |
|
| 50 | */ |
|
| 51 | protected $poster_path = null; |
|
| 52 | ||
| 53 | /** |
|
| 54 | * original name |
|
| 55 | * @var string |
|
| 56 | */ |
|
| 57 | protected $original_name = null; |
|
| 58 | ||
| 59 | /** |
|
| 60 | * First air date |
|
| 61 | * @var string |
|
| 62 | */ |
|
| 63 | protected $first_air_date = null; |
|
| 64 | ||
| 65 | /** |
|
| 66 | * Id |
|
| 67 | * @var int |
|
| 68 | */ |
|
| 69 | protected $id = null; |
|
| 70 | ||
| 71 | /** |
|
| 72 | * Episode count |
|
| 73 | * @var int |
|
| 74 | */ |
|
| 75 | protected $episode_count = null; |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Constructor |
|
| 79 | * @param \vfalies\tmdb\Interfaces\TmdbInterface $tmdb |
|
| 80 | * @param \stdClass $result |
|
| 81 | */ |
|
| 82 | public function __construct(TmdbInterface $tmdb, \stdClass $result) |
|
| 83 | { |
|
| 84 | parent::__construct($tmdb, $result); |
|
| 85 | ||
| 86 | $this->id = $this->data->id; |
|
| 87 | $this->episode_count = $this->data->episode_count; |
|
| 88 | $this->character = $this->data->character; |
|
| 89 | $this->credit_id = $this->data->credit_id; |
|
| 90 | $this->original_name = $this->data->original_name; |
|
| 91 | $this->name = $this->data->name; |
|
| 92 | $this->poster_path = $this->data->poster_path; |
|
| 93 | $this->first_air_date = $this->data->first_air_date; |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Get Id |
|
| 98 | * @return int |
|
| 99 | */ |
|
| 100 | public function getId() |
|
| 101 | { |
|
| 102 | return (int) $this->id; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * Get credit Id |
|
| 107 | * @return string |
|
| 108 | */ |
|
| 109 | public function getCreditId() |
|
| 110 | { |
|
| 111 | return $this->credit_id; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Get character name |
|
| 116 | * @return string |
|
| 117 | */ |
|
| 118 | public function getCharacter() |
|
| 119 | { |
|
| 120 | return $this->character; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Get name |
|
| 125 | * @return string |
|
| 126 | */ |
|
| 127 | public function getName() |
|
| 128 | { |
|
| 129 | return $this->name; |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * Get original name |
|
| 134 | * @return string |
|
| 135 | */ |
|
| 136 | public function getOriginalName() |
|
| 137 | { |
|
| 138 | return $this->original_name; |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * Get poster path |
|
| 143 | * @return string |
|
| 144 | */ |
|
| 145 | public function getPosterPath() |
|
| 146 | { |
|
| 147 | return $this->poster_path; |
|
| 148 | } |
|
| 149 | ||
| 150 | /** |
|
| 151 | * Get first air date |
|
| 152 | * @return string |
|
| 153 | */ |
|
| 154 | public function getFirstAirDate() |
|
| 155 | { |
|
| 156 | return $this->first_air_date; |
|
| 157 | } |
|
| 158 | ||
| 159 | /** |
|
| 160 | * Episode count |
|
| 161 | * @return boolean |
|
| 162 | */ |
|
| 163 | public function getEpisodeCount() |
|
| 164 | { |
|
| 165 | return $this->episode_count; |
|
| 166 | } |
|
| 167 | ||
| 168 | } |
|
| 169 | ||