1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace MovingImage\Client\VMPro\Entity; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation\Type; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class Video. |
9
|
|
|
* |
10
|
|
|
* @author Omid Rad <[email protected]> |
11
|
|
|
*/ |
12
|
|
|
class Video |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @Type("string") |
16
|
|
|
*/ |
17
|
|
|
private $id; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @Type("string") |
21
|
|
|
*/ |
22
|
|
|
private $title; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @Type("string") |
26
|
|
|
*/ |
27
|
|
|
private $description; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @Type("string") |
31
|
|
|
*/ |
32
|
|
|
private $thumbnail; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @Type("integer") |
36
|
|
|
*/ |
37
|
|
|
private $length; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @Type("integer") |
41
|
|
|
*/ |
42
|
|
|
private $createdDate; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @Type("integer") |
46
|
|
|
*/ |
47
|
|
|
private $modifiedDate; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @Type("integer") |
51
|
|
|
*/ |
52
|
|
|
private $uploadDate; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @Type("integer") |
56
|
|
|
*/ |
57
|
|
|
private $generation; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @Type("integer") |
61
|
|
|
*/ |
62
|
|
|
private $plays; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @Type("integer") |
66
|
|
|
*/ |
67
|
|
|
private $views; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @Type("boolean") |
71
|
|
|
*/ |
72
|
|
|
private $allFormatsAvailable; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @TODO replace it with array collection |
76
|
|
|
* |
77
|
|
|
* @Type("array") |
78
|
|
|
*/ |
79
|
|
|
private $customMetaData; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @TODO replace it with array collection |
83
|
|
|
* |
84
|
|
|
* @Type("array") |
85
|
|
|
*/ |
86
|
|
|
private $keywords; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @TODO replace it with array collection |
90
|
|
|
* |
91
|
|
|
* @Type("array") |
92
|
|
|
*/ |
93
|
|
|
private $stills; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @param string $id |
97
|
|
|
* |
98
|
|
|
* @return Video |
99
|
|
|
*/ |
100
|
|
|
public function setId($id) |
101
|
|
|
{ |
102
|
|
|
$this->id = $id; |
103
|
|
|
|
104
|
|
|
return $this; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @return string |
109
|
|
|
*/ |
110
|
|
|
public function getId() |
111
|
|
|
{ |
112
|
|
|
return $this->id; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @return string |
117
|
|
|
*/ |
118
|
|
|
public function getTitle() |
119
|
|
|
{ |
120
|
|
|
return $this->title; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @param string $title |
125
|
|
|
* |
126
|
|
|
* @return Video |
127
|
|
|
*/ |
128
|
|
|
public function setTitle($title) |
129
|
|
|
{ |
130
|
|
|
$this->title = $title; |
131
|
|
|
|
132
|
|
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @return string |
137
|
|
|
*/ |
138
|
|
|
public function getDescription() |
139
|
|
|
{ |
140
|
|
|
return $this->description; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @param string $description |
145
|
|
|
* |
146
|
|
|
* @return Video |
147
|
|
|
*/ |
148
|
|
|
public function setDescription($description) |
149
|
|
|
{ |
150
|
|
|
$this->description = $description; |
151
|
|
|
|
152
|
|
|
return $this; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @return string |
157
|
|
|
*/ |
158
|
|
|
public function getThumbnail() |
159
|
|
|
{ |
160
|
|
|
return $this->thumbnail; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @param string $thumbnail |
165
|
|
|
* |
166
|
|
|
* @return Video |
167
|
|
|
*/ |
168
|
|
|
public function setThumbnail($thumbnail) |
169
|
|
|
{ |
170
|
|
|
$this->thumbnail = $thumbnail; |
171
|
|
|
|
172
|
|
|
return $this; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @return int |
177
|
|
|
*/ |
178
|
|
|
public function getLength() |
179
|
|
|
{ |
180
|
|
|
return $this->length; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @param int $length |
185
|
|
|
* |
186
|
|
|
* @return Video |
187
|
|
|
*/ |
188
|
|
|
public function setLength($length) |
189
|
|
|
{ |
190
|
|
|
$this->length = $length; |
191
|
|
|
|
192
|
|
|
return $this; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @return int |
197
|
|
|
*/ |
198
|
|
|
public function getCreatedDate() |
199
|
|
|
{ |
200
|
|
|
return $this->createdDate; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @param int $createdDate |
205
|
|
|
* |
206
|
|
|
* @return Video |
207
|
|
|
*/ |
208
|
|
|
public function setCreatedDate($createdDate) |
209
|
|
|
{ |
210
|
|
|
$this->createdDate = $createdDate; |
211
|
|
|
|
212
|
|
|
return $this; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* @return int |
217
|
|
|
*/ |
218
|
|
|
public function getModifiedDate() |
219
|
|
|
{ |
220
|
|
|
return $this->modifiedDate; |
221
|
|
|
} |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* @param int $modifiedDate |
225
|
|
|
* |
226
|
|
|
* @return Video |
227
|
|
|
*/ |
228
|
|
|
public function setModifiedDate($modifiedDate) |
229
|
|
|
{ |
230
|
|
|
$this->modifiedDate = $modifiedDate; |
231
|
|
|
|
232
|
|
|
return $this; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @return int |
237
|
|
|
*/ |
238
|
|
|
public function getUploadDate() |
239
|
|
|
{ |
240
|
|
|
return $this->uploadDate; |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* @param int $uploadDate |
245
|
|
|
* |
246
|
|
|
* @return Video |
247
|
|
|
*/ |
248
|
|
|
public function setUploadDate($uploadDate) |
249
|
|
|
{ |
250
|
|
|
$this->uploadDate = $uploadDate; |
251
|
|
|
|
252
|
|
|
return $this; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @return int |
257
|
|
|
*/ |
258
|
|
|
public function getGeneration() |
259
|
|
|
{ |
260
|
|
|
return $this->generation; |
261
|
|
|
} |
262
|
|
|
|
263
|
|
|
/** |
264
|
|
|
* @param int $generation |
265
|
|
|
* |
266
|
|
|
* @return Video |
267
|
|
|
*/ |
268
|
|
|
public function setGeneration($generation) |
269
|
|
|
{ |
270
|
|
|
$this->generation = $generation; |
271
|
|
|
|
272
|
|
|
return $this; |
273
|
|
|
} |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @return int |
277
|
|
|
*/ |
278
|
|
|
public function getPlays() |
279
|
|
|
{ |
280
|
|
|
return $this->plays; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @param int $plays |
285
|
|
|
* |
286
|
|
|
* @return Video |
287
|
|
|
*/ |
288
|
|
|
public function setPlays($plays) |
289
|
|
|
{ |
290
|
|
|
$this->plays = $plays; |
291
|
|
|
|
292
|
|
|
return $this; |
293
|
|
|
} |
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* @return int |
297
|
|
|
*/ |
298
|
|
|
public function getViews() |
299
|
|
|
{ |
300
|
|
|
return $this->views; |
301
|
|
|
} |
302
|
|
|
|
303
|
|
|
/** |
304
|
|
|
* @param int $views |
305
|
|
|
* |
306
|
|
|
* @return Video |
307
|
|
|
*/ |
308
|
|
|
public function setViews($views) |
309
|
|
|
{ |
310
|
|
|
$this->views = $views; |
311
|
|
|
|
312
|
|
|
return $this; |
313
|
|
|
} |
314
|
|
|
|
315
|
|
|
/** |
316
|
|
|
* @return bool |
317
|
|
|
*/ |
318
|
|
|
public function getAllFormatsAvailable() |
319
|
|
|
{ |
320
|
|
|
return $this->allFormatsAvailable; |
321
|
|
|
} |
322
|
|
|
|
323
|
|
|
/** |
324
|
|
|
* @param bool $allFormatsAvailable |
325
|
|
|
* |
326
|
|
|
* @return Video |
327
|
|
|
*/ |
328
|
|
|
public function setAllFormatsAvailable($allFormatsAvailable) |
329
|
|
|
{ |
330
|
|
|
$this->allFormatsAvailable = $allFormatsAvailable; |
331
|
|
|
|
332
|
|
|
return $this; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* @return array |
337
|
|
|
*/ |
338
|
|
|
public function getCustomMetaData() |
339
|
|
|
{ |
340
|
|
|
return $this->customMetaData; |
341
|
|
|
} |
342
|
|
|
|
343
|
|
|
/** |
344
|
|
|
* @param array $customMetaData |
345
|
|
|
* |
346
|
|
|
* @return Video |
347
|
|
|
*/ |
348
|
|
|
public function setCustomMetaData($customMetaData) |
349
|
|
|
{ |
350
|
|
|
$this->customMetaData = $customMetaData; |
351
|
|
|
|
352
|
|
|
return $this; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @return array |
357
|
|
|
*/ |
358
|
|
|
public function getKeywords() |
359
|
|
|
{ |
360
|
|
|
return $this->keywords; |
361
|
|
|
} |
362
|
|
|
|
363
|
|
|
/** |
364
|
|
|
* @param array $keywords |
365
|
|
|
* |
366
|
|
|
* @return Video |
367
|
|
|
*/ |
368
|
|
|
public function setKeywords($keywords) |
369
|
|
|
{ |
370
|
|
|
$this->keywords = $keywords; |
371
|
|
|
|
372
|
|
|
return $this; |
373
|
|
|
} |
374
|
|
|
|
375
|
|
|
/** |
376
|
|
|
* @return array |
377
|
|
|
*/ |
378
|
|
|
public function getStills() |
379
|
|
|
{ |
380
|
|
|
return $this->stills; |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
/** |
384
|
|
|
* @param array $stills |
385
|
|
|
* |
386
|
|
|
* @return Video |
387
|
|
|
*/ |
388
|
|
|
public function setStills($stills) |
389
|
|
|
{ |
390
|
|
|
$this->stills = $stills; |
391
|
|
|
|
392
|
|
|
return $this; |
393
|
|
|
} |
394
|
|
|
} |
395
|
|
|
|