1 | <?php |
||
20 | class Video extends AbstractMedia { |
||
21 | |||
22 | /** |
||
23 | * Duration. |
||
24 | * |
||
25 | * @var int |
||
26 | */ |
||
27 | private $duration; |
||
28 | |||
29 | /** |
||
30 | * Full res. |
||
31 | * |
||
32 | * @var mixed |
||
33 | */ |
||
34 | private $fullRes; |
||
35 | |||
36 | /** |
||
37 | * Image. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $image; |
||
42 | |||
43 | /** |
||
44 | * Video files. |
||
45 | * |
||
46 | * @var VideoFile[] |
||
47 | */ |
||
48 | private $videoFiles; |
||
49 | |||
50 | /** |
||
51 | * Video pictures. |
||
52 | * |
||
53 | * @var VideoPicture[] |
||
54 | */ |
||
55 | private $videoPictures; |
||
56 | |||
57 | /** |
||
58 | * Constructor. |
||
59 | */ |
||
60 | public function __construct() { |
||
64 | |||
65 | /** |
||
66 | * Add a video file. |
||
67 | * |
||
68 | * @param VideoFile $videoFile The video file. |
||
69 | * @return Video Returns this video. |
||
70 | */ |
||
71 | public function addVideoFile(VideoFile $videoFile) { |
||
75 | |||
76 | /** |
||
77 | * Add a video picture. |
||
78 | * |
||
79 | * @param VideoPicture $videoPicture The video picture. |
||
80 | * @return Video Returns this video. |
||
81 | */ |
||
82 | public function addVideoPicture(VideoPicture $videoPicture) { |
||
86 | |||
87 | /** |
||
88 | * Get the duration. |
||
89 | * |
||
90 | * @return int Returns the duration. |
||
91 | */ |
||
92 | public function getDuration() { |
||
95 | |||
96 | /** |
||
97 | * Get the full res. |
||
98 | * |
||
99 | * @return mixed Returns the full res. |
||
100 | */ |
||
101 | public function getFullRes() { |
||
104 | |||
105 | /** |
||
106 | * Get the image. |
||
107 | * |
||
108 | * @return string Returns the image. |
||
109 | */ |
||
110 | public function getImage() { |
||
113 | |||
114 | /** |
||
115 | * Get the video files. |
||
116 | * |
||
117 | * @return VideoFile[] Returns teh video files. |
||
118 | */ |
||
119 | public function getVideoFiles() { |
||
122 | |||
123 | /** |
||
124 | * Get the video pictures. |
||
125 | * |
||
126 | * @return VideoPicture[] Returns teh video pictures. |
||
127 | */ |
||
128 | public function getVideoPictures() { |
||
131 | |||
132 | /** |
||
133 | * Set the duration. |
||
134 | * |
||
135 | * @param int $duration The duration. |
||
136 | * @return Video Returns this video. |
||
137 | */ |
||
138 | public function setDuration($duration) { |
||
142 | |||
143 | /** |
||
144 | * Set the full re. |
||
145 | * |
||
146 | * @param mixed $fullRes The full res. |
||
147 | * @return Video Returns this video. |
||
148 | */ |
||
149 | public function setFullRes($fullRes) { |
||
153 | |||
154 | /** |
||
155 | * Set the image. |
||
156 | * |
||
157 | * @param string $image The image. |
||
158 | * @return Video Returns this video. |
||
159 | */ |
||
160 | public function setImage($image) { |
||
164 | |||
165 | /** |
||
166 | * Set the video files. |
||
167 | * |
||
168 | * @param VideoFile[] $videoFiles The video files. |
||
169 | * @return Video Returns this video. |
||
170 | */ |
||
171 | protected function setVideoFiles(array $videoFiles) { |
||
175 | |||
176 | /** |
||
177 | * Set the video pictures. |
||
178 | * |
||
179 | * @param VideoPicture[] $videoPictures The video pictures. |
||
180 | * @return Video Returns this video. |
||
181 | */ |
||
182 | protected function setVideoPictures(array $videoPictures) { |
||
186 | } |
||
187 |