1 | <?php |
||
8 | class ChannelCollection |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | * @JMS\Type("integer") |
||
13 | * @JMS\SerializedName("totalCount") |
||
14 | */ |
||
15 | private $totalCount; |
||
16 | |||
17 | /** |
||
18 | * @var Channel[] |
||
19 | * @JMS\Type("array<MovingImage\Client\VMPro\Entity\Channel>") |
||
20 | */ |
||
21 | private $channels; |
||
22 | |||
23 | /** |
||
24 | * @param int $totalCount |
||
25 | * @param Channel[] $channels |
||
26 | */ |
||
27 | public function __construct($totalCount, array $channels) |
||
32 | |||
33 | /** |
||
34 | * @return int |
||
35 | */ |
||
36 | public function getTotalCount() |
||
40 | |||
41 | /** |
||
42 | * @return Channel[] |
||
43 | */ |
||
44 | public function getChannels() |
||
48 | |||
49 | /** |
||
50 | * @param int $totalCount |
||
51 | * |
||
52 | * @return ChannelCollection |
||
53 | */ |
||
54 | public function setTotalCount($totalCount) |
||
60 | |||
61 | /** |
||
62 | * @param Channel[] $channels |
||
63 | * |
||
64 | * @return ChannelCollection |
||
65 | */ |
||
66 | public function setChannels(array $channels) |
||
72 | } |
||
73 |