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 | * User. |
||
45 | * |
||
46 | * @var User |
||
47 | */ |
||
48 | private $user; |
||
49 | |||
50 | /** |
||
51 | * Video files. |
||
52 | * |
||
53 | * @var VideoFile[] |
||
54 | */ |
||
55 | private $videoFiles; |
||
56 | |||
57 | /** |
||
58 | * Video pictures. |
||
59 | * |
||
60 | * @var VideoPicture[] |
||
61 | */ |
||
62 | private $videoPictures; |
||
63 | |||
64 | /** |
||
65 | * Constructor. |
||
66 | */ |
||
67 | public function __construct() { |
||
73 | |||
74 | /** |
||
75 | * Add a video file. |
||
76 | * |
||
77 | * @param VideoFile $videoFile The video file. |
||
78 | * @return Video Returns this video. |
||
79 | */ |
||
80 | public function addVideoFile(VideoFile $videoFile) { |
||
84 | |||
85 | /** |
||
86 | * Add a video picture. |
||
87 | * |
||
88 | * @param VideoPicture $videoPicture The video picture. |
||
89 | * @return Video Returns this video. |
||
90 | */ |
||
91 | public function addVideoPicture(VideoPicture $videoPicture) { |
||
95 | |||
96 | /** |
||
97 | * Get the duration. |
||
98 | * |
||
99 | * @return int Returns the duration. |
||
100 | */ |
||
101 | public function getDuration() { |
||
104 | |||
105 | /** |
||
106 | * Get the full res. |
||
107 | * |
||
108 | * @return mixed Returns the full res. |
||
109 | */ |
||
110 | public function getFullRes() { |
||
113 | |||
114 | /** |
||
115 | * Get the image. |
||
116 | * |
||
117 | * @return string Returns the image. |
||
118 | */ |
||
119 | public function getImage() { |
||
122 | |||
123 | /** |
||
124 | * Get the user. |
||
125 | * |
||
126 | * @return User Returns the user. |
||
127 | */ |
||
128 | public function getUser() { |
||
131 | |||
132 | /** |
||
133 | * Get the video files. |
||
134 | * |
||
135 | * @return VideoFile[] Returns teh video files. |
||
136 | */ |
||
137 | public function getVideoFiles() { |
||
140 | |||
141 | /** |
||
142 | * Get the video pictures. |
||
143 | * |
||
144 | * @return VideoPicture[] Returns teh video pictures. |
||
145 | */ |
||
146 | public function getVideoPictures() { |
||
149 | |||
150 | /** |
||
151 | * Set the duration. |
||
152 | * |
||
153 | * @param int $duration The duration. |
||
154 | * @return Video Returns this video. |
||
155 | */ |
||
156 | public function setDuration($duration) { |
||
160 | |||
161 | /** |
||
162 | * Set the full re. |
||
163 | * |
||
164 | * @param mixed $fullRes The full res. |
||
165 | * @return Video Returns this video. |
||
166 | */ |
||
167 | public function setFullRes($fullRes) { |
||
171 | |||
172 | /** |
||
173 | * Set the image. |
||
174 | * |
||
175 | * @param string $image The image. |
||
176 | * @return Video Returns this video. |
||
177 | */ |
||
178 | public function setImage($image) { |
||
182 | |||
183 | /** |
||
184 | * Set the user. |
||
185 | * |
||
186 | * @param User|null $user The user. |
||
187 | * @return Video Returns this video. |
||
188 | */ |
||
189 | public function setUser(User $user = null) { |
||
193 | |||
194 | /** |
||
195 | * Set the video files. |
||
196 | * |
||
197 | * @param VideoFile[] $videoFiles The video files. |
||
198 | * @return Video Returns this video. |
||
199 | */ |
||
200 | protected function setVideoFiles(array $videoFiles) { |
||
204 | |||
205 | /** |
||
206 | * Set the video pictures. |
||
207 | * |
||
208 | * @param VideoPicture[] $videoPictures The video pictures. |
||
209 | * @return Video Returns this video. |
||
210 | */ |
||
211 | protected function setVideoPictures(array $videoPictures) { |
||
215 | } |
||
216 |