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