1 | <?php |
||
9 | class VideoCollection |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | * @JMS\Type("integer") |
||
14 | * @JMS\SerializedName("totalCount") |
||
15 | */ |
||
16 | private $totalCount; |
||
17 | |||
18 | /** |
||
19 | * @var VideoInterface[] |
||
20 | * @JMS\Type("array<MovingImage\Client\VMPro\Entity\Video>") |
||
21 | */ |
||
22 | private $videos; |
||
23 | |||
24 | /** |
||
25 | * @param int $totalCount |
||
26 | * @param VideoInterface[] $videos |
||
27 | */ |
||
28 | public function __construct($totalCount, array $videos) |
||
33 | |||
34 | /** |
||
35 | * @return int |
||
36 | */ |
||
37 | public function getTotalCount() |
||
41 | |||
42 | /** |
||
43 | * @return VideoInterface[] |
||
44 | */ |
||
45 | public function getVideos() |
||
49 | |||
50 | /** |
||
51 | * @param int $totalCount |
||
52 | * |
||
53 | * @return VideoCollection |
||
54 | */ |
||
55 | public function setTotalCount(int $totalCount) |
||
61 | |||
62 | /** |
||
63 | * @param VideoInterface[] $videos |
||
64 | * |
||
65 | * @return VideoCollection |
||
66 | */ |
||
67 | public function setVideos(array $videos) |
||
73 | } |
||
74 |