Passed
Push — master ( df56b0...d4a365 )
by
unknown
43s
created

Video::setCustomMetadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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
     * @Type("boolean")
103
     */
104
    private $published;
105
106
    /**
107
     * @param string $id
108
     *
109
     * @return Video
110
     */
111
    public function setId($id)
112
    {
113
        $this->id = $id;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getId()
122
    {
123
        return $this->id;
124
    }
125
126
    /**
127
     * @return string
128
     */
129
    public function getTitle()
130
    {
131
        return $this->title;
132
    }
133
134
    /**
135
     * @param string $title
136
     *
137
     * @return Video
138
     */
139
    public function setTitle($title)
140
    {
141
        $this->title = $title;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return string
148
     */
149
    public function getDescription()
150
    {
151
        return $this->description;
152
    }
153
154
    /**
155
     * @param string $description
156
     *
157
     * @return Video
158
     */
159
    public function setDescription($description)
160
    {
161
        $this->description = $description;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getThumbnail()
170
    {
171
        return $this->thumbnail;
172
    }
173
174
    /**
175
     * @param string $thumbnail
176
     *
177
     * @return Video
178
     */
179
    public function setThumbnail($thumbnail)
180
    {
181
        $this->thumbnail = $thumbnail;
182
183
        return $this;
184
    }
185
186
    /**
187
     * @return int
188
     */
189
    public function getLength()
190
    {
191
        return $this->length;
192
    }
193
194
    /**
195
     * @param int $length
196
     *
197
     * @return Video
198
     */
199
    public function setLength($length)
200
    {
201
        $this->length = $length;
202
203
        return $this;
204
    }
205
206
    /**
207
     * @return int
208
     */
209
    public function getCreatedDate()
210
    {
211
        return $this->createdDate;
212
    }
213
214
    /**
215
     * @param int $createdDate
216
     *
217
     * @return Video
218
     */
219
    public function setCreatedDate($createdDate)
220
    {
221
        $this->createdDate = $createdDate;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @return int
228
     */
229
    public function getModifiedDate()
230
    {
231
        return $this->modifiedDate;
232
    }
233
234
    /**
235
     * @param int $modifiedDate
236
     *
237
     * @return Video
238
     */
239
    public function setModifiedDate($modifiedDate)
240
    {
241
        $this->modifiedDate = $modifiedDate;
242
243
        return $this;
244
    }
245
246
    /**
247
     * @return int
248
     */
249
    public function getUploadDate()
250
    {
251
        return $this->uploadDate;
252
    }
253
254
    /**
255
     * @param int $uploadDate
256
     *
257
     * @return Video
258
     */
259
    public function setUploadDate($uploadDate)
260
    {
261
        $this->uploadDate = $uploadDate;
262
263
        return $this;
264
    }
265
266
    /**
267
     * @return int
268
     */
269
    public function getGeneration()
270
    {
271
        return $this->generation;
272
    }
273
274
    /**
275
     * @param int $generation
276
     *
277
     * @return Video
278
     */
279
    public function setGeneration($generation)
280
    {
281
        $this->generation = $generation;
282
283
        return $this;
284
    }
285
286
    /**
287
     * @return int
288
     */
289
    public function getPlays()
290
    {
291
        return $this->plays;
292
    }
293
294
    /**
295
     * @param int $plays
296
     *
297
     * @return Video
298
     */
299
    public function setPlays($plays)
300
    {
301
        $this->plays = $plays;
302
303
        return $this;
304
    }
305
306
    /**
307
     * @return int
308
     */
309
    public function getViews()
310
    {
311
        return $this->views;
312
    }
313
314
    /**
315
     * @param int $views
316
     *
317
     * @return Video
318
     */
319
    public function setViews($views)
320
    {
321
        $this->views = $views;
322
323
        return $this;
324
    }
325
326
    /**
327
     * @return bool
328
     */
329
    public function getAllFormatsAvailable()
330
    {
331
        return $this->allFormatsAvailable;
332
    }
333
334
    /**
335
     * @param bool $allFormatsAvailable
336
     *
337
     * @return Video
338
     */
339
    public function setAllFormatsAvailable($allFormatsAvailable)
340
    {
341
        $this->allFormatsAvailable = $allFormatsAvailable;
342
343
        return $this;
344
    }
345
346
    /**
347
     * @return array
348
     */
349
    public function getCustomMetadata()
350
    {
351
        return $this->customMetadata;
352
    }
353
354
    /**
355
     * @param array $customMetadata
356
     *
357
     * @return Video
358
     */
359
    public function setCustomMetadata($customMetadata)
360
    {
361
        $this->customMetadata = $customMetadata;
362
363
        return $this;
364
    }
365
366
    /**
367
     * @return array
368
     */
369
    public function getKeywords()
370
    {
371
        return $this->keywords;
372
    }
373
374
    /**
375
     * @param array $keywords
376
     *
377
     * @return Video
378
     */
379
    public function setKeywords($keywords)
380
    {
381
        $this->keywords = $keywords;
382
383
        return $this;
384
    }
385
386
    /**
387
     * @return array
388
     */
389
    public function getStills()
390
    {
391
        return $this->stills;
392
    }
393
394
    /**
395
     * @param array $stills
396
     *
397
     * @return Video
398
     */
399
    public function setStills($stills)
400
    {
401
        $this->stills = $stills;
402
403
        return $this;
404
    }
405
406
    /**
407
     * @return mixed
408
     */
409
    public function getPublished()
410
    {
411
        return $this->published;
412
    }
413
414
    /**
415
     * @param mixed $published
416
     *
417
     * @return Video
418
     */
419
    public function setPublished($published)
420
    {
421
        $this->published = $published;
422
423
        return $this;
424
    }
425
}
426