1 | <?php declare(strict_types = 1); |
||
26 | class AlternativeName extends Results |
||
27 | { |
||
28 | /** |
||
29 | * Id |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $id; |
||
33 | /** |
||
34 | * Name |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $name; |
||
38 | /** |
||
39 | * Type |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $type; |
||
43 | |||
44 | /** |
||
45 | * Constructor |
||
46 | * @param TmdbInterface $tmdb |
||
47 | * @param int $id |
||
48 | * @param \stdClass $result |
||
49 | */ |
||
50 | 15 | public function __construct(TmdbInterface $tmdb, int $id, \stdClass $result) |
|
59 | |||
60 | /** |
||
61 | * Id |
||
62 | * @return int |
||
63 | */ |
||
64 | 3 | public function getId() : int |
|
68 | |||
69 | /** |
||
70 | * Name |
||
71 | * @return string |
||
72 | */ |
||
73 | 3 | public function getName() : string |
|
77 | |||
78 | /** |
||
79 | * Type |
||
80 | * @return string |
||
81 | */ |
||
82 | 3 | public function getType() : string |
|
86 | } |
||
87 |