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