1 | <?php |
||
5 | class Collection extends Item implements \vfalies\tmdb\Interfaces\CollectionInterface |
||
6 | { |
||
7 | |||
8 | // Private loaded data |
||
9 | protected $data = null; |
||
10 | protected $conf = null; |
||
11 | protected $id = null; |
||
12 | protected $tmdb = null; |
||
13 | |||
14 | /** |
||
15 | * Constructor |
||
16 | * @param \vfalies\tmdb\Tmdb $tmdb |
||
17 | * @throws \Exception |
||
18 | */ |
||
19 | 15 | public function __construct(\vfalies\tmdb\Tmdb $tmdb, $collection_id, array $options = array()) |
|
23 | |||
24 | /** |
||
25 | * Get collection ID |
||
26 | * @return int |
||
27 | * @throws \Exception |
||
28 | */ |
||
29 | 2 | public function getId(): int |
|
33 | |||
34 | /** |
||
35 | * Get collection name |
||
36 | * @return string |
||
37 | * @throws \Exception |
||
38 | */ |
||
39 | 2 | public function getName(): string |
|
47 | |||
48 | /** |
||
49 | * Get collection parts |
||
50 | * @return Generator|SearchMovieResult |
||
51 | */ |
||
52 | 2 | public function getParts(): \Generator |
|
63 | |||
64 | } |
||
65 |