|
1
|
|
|
<?php declare(strict_types=1); |
|
2
|
|
|
/* |
|
3
|
|
|
* This file is part of the feed-io package. |
|
4
|
|
|
* |
|
5
|
|
|
* (c) Alexandre Debril <[email protected]> |
|
6
|
|
|
* |
|
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
8
|
|
|
* file that was distributed with this source code. |
|
9
|
|
|
*/ |
|
10
|
|
|
|
|
11
|
|
|
namespace FeedIo\Feed\Item; |
|
12
|
|
|
|
|
13
|
|
|
abstract class MediaContentMedium |
|
14
|
|
|
{ |
|
15
|
|
|
const Image = 0; |
|
16
|
|
|
const Audio = 1; |
|
17
|
|
|
const Video = 2; |
|
18
|
|
|
const Document = 3; |
|
19
|
|
|
const Executable = 4; |
|
20
|
|
|
|
|
21
|
47 |
|
public static function fromXML(?string $value) : ?int |
|
22
|
|
|
{ |
|
23
|
47 |
|
switch (strtolower($value ?: "")) { |
|
24
|
47 |
|
case "image": |
|
25
|
|
|
return static::Image; |
|
26
|
47 |
|
case "audio": |
|
27
|
|
|
return static::Audio; |
|
28
|
47 |
|
case "video": |
|
29
|
1 |
|
return static::Video; |
|
30
|
46 |
|
case "document": |
|
31
|
|
|
return static::Document; |
|
32
|
46 |
|
case "executable": |
|
33
|
|
|
return static::Executable; |
|
34
|
|
|
default: |
|
35
|
46 |
|
return null; |
|
36
|
|
|
} |
|
37
|
|
|
} |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
abstract class MediaContentExpression |
|
41
|
|
|
{ |
|
42
|
|
|
const Sample = 0; |
|
43
|
|
|
const Full = 1; |
|
44
|
|
|
const NonStop = 2; |
|
45
|
|
|
|
|
46
|
47 |
|
public static function fromXML(?string $value) : ?int |
|
47
|
|
|
{ |
|
48
|
47 |
|
switch (strtolower($value ?: "")) { |
|
49
|
47 |
|
case "sample": |
|
50
|
|
|
return static::Sample; |
|
51
|
47 |
|
case "full": |
|
52
|
1 |
|
return static::Full; |
|
53
|
46 |
|
case "nonstop": |
|
54
|
|
|
return static::NonStop; |
|
55
|
|
|
default: |
|
56
|
46 |
|
return null; |
|
57
|
|
|
} |
|
58
|
|
|
} |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
abstract class MediaDescriptionType |
|
62
|
|
|
{ |
|
63
|
|
|
const Plain = 0; |
|
64
|
|
|
const HTML = 1; |
|
65
|
|
|
|
|
66
|
5 |
|
public static function fromXML(?string $value) : ?int |
|
67
|
|
|
{ |
|
68
|
5 |
|
switch (strtolower($value ?: "")) { |
|
69
|
5 |
|
case "plain": |
|
70
|
1 |
|
return static::Plain; |
|
71
|
4 |
|
case "html": |
|
72
|
|
|
return static::HTML; |
|
73
|
|
|
default: |
|
74
|
4 |
|
return null; |
|
75
|
|
|
} |
|
76
|
|
|
} |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
abstract class MediaTitleType |
|
80
|
|
|
{ |
|
81
|
|
|
const Plain = 0; |
|
82
|
|
|
const HTML = 1; |
|
83
|
|
|
|
|
84
|
4 |
|
public static function fromXML(?string $value) : ?int |
|
85
|
|
|
{ |
|
86
|
4 |
|
switch (strtolower($value ?: "")) { |
|
87
|
4 |
|
case "plain": |
|
88
|
2 |
|
return static::Plain; |
|
89
|
2 |
|
case "html": |
|
90
|
|
|
return static::HTML; |
|
91
|
|
|
default: |
|
92
|
2 |
|
return null; |
|
93
|
|
|
} |
|
94
|
|
|
} |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
abstract class MediaHashAlgo |
|
98
|
|
|
{ |
|
99
|
|
|
const MD5 = 0; |
|
100
|
|
|
const SHA1 = 1; |
|
101
|
|
|
|
|
102
|
2 |
|
public static function fromXML(?string $value) : ?int |
|
103
|
|
|
{ |
|
104
|
2 |
|
switch (strtolower($value ?: "")) { |
|
105
|
2 |
|
case "md5": |
|
106
|
|
|
return static::MD5; |
|
107
|
2 |
|
case "sha1": |
|
108
|
1 |
|
return static::SHA1; |
|
109
|
|
|
default: |
|
110
|
1 |
|
return static::MD5; |
|
111
|
|
|
} |
|
112
|
|
|
} |
|
113
|
|
|
} |
|
114
|
|
|
|
|
115
|
|
|
abstract class MediaCreditScheme |
|
116
|
|
|
{ |
|
117
|
|
|
const URN_EBU = 0; |
|
118
|
|
|
const URN_YVS = 1; |
|
119
|
|
|
|
|
120
|
2 |
|
public static function fromXML(?string $value) : ?int |
|
121
|
|
|
{ |
|
122
|
2 |
|
switch (strtolower($value ?: "")) { |
|
123
|
2 |
|
case "urn:ebu": |
|
124
|
1 |
|
return static::URN_EBU; |
|
125
|
2 |
|
case "urn:yvs": |
|
126
|
1 |
|
return static::URN_YVS; |
|
127
|
|
|
default: |
|
128
|
1 |
|
return static::URN_EBU; |
|
129
|
|
|
} |
|
130
|
|
|
} |
|
131
|
|
|
} |
|
132
|
|
|
|
|
133
|
|
|
abstract class MediaTextType |
|
134
|
|
|
{ |
|
135
|
|
|
const Plain = 0; |
|
136
|
|
|
const HTML = 1; |
|
137
|
|
|
|
|
138
|
2 |
|
public static function fromXML(?string $value) : ?int |
|
139
|
|
|
{ |
|
140
|
2 |
|
switch (strtolower($value ?: "")) { |
|
141
|
2 |
|
case "plain": |
|
142
|
1 |
|
return static::Plain; |
|
143
|
2 |
|
case "html": |
|
144
|
1 |
|
return static::HTML; |
|
145
|
|
|
default: |
|
146
|
1 |
|
return static::Plain; |
|
147
|
|
|
} |
|
148
|
|
|
} |
|
149
|
|
|
} |
|
150
|
|
|
|
|
151
|
|
|
abstract class MediaRestrictionRelationship |
|
152
|
|
|
{ |
|
153
|
|
|
const Allow = 0; |
|
154
|
|
|
const Deny = 1; |
|
155
|
|
|
|
|
156
|
|
|
public static function fromXML(?string $value) : ?int |
|
157
|
|
|
{ |
|
158
|
|
|
switch (strtolower($value ?: "")) { |
|
159
|
|
|
case "allow": |
|
160
|
|
|
return static::Allow; |
|
161
|
|
|
case "deny": |
|
162
|
|
|
return static::Deny; |
|
163
|
|
|
default: |
|
164
|
|
|
return null; |
|
165
|
|
|
} |
|
166
|
|
|
} |
|
167
|
|
|
} |
|
168
|
|
|
|
|
169
|
|
|
abstract class MediaRestrictionType |
|
170
|
|
|
{ |
|
171
|
|
|
const Country = 0; |
|
172
|
|
|
const URI = 1; |
|
173
|
|
|
const Sharing = 2; |
|
174
|
|
|
|
|
175
|
2 |
|
public static function fromXML(?string $value) : ?int |
|
176
|
|
|
{ |
|
177
|
2 |
|
switch (strtolower($value ?: "")) { |
|
178
|
2 |
|
case "country": |
|
179
|
1 |
|
return static::Country; |
|
180
|
2 |
|
case "uri": |
|
181
|
|
|
return static::URI; |
|
182
|
2 |
|
case "sharing": |
|
183
|
|
|
return static::Sharing; |
|
184
|
|
|
default: |
|
185
|
2 |
|
return null; |
|
186
|
|
|
} |
|
187
|
|
|
} |
|
188
|
|
|
} |
|
189
|
|
|
|
|
190
|
|
|
abstract class MediaStatus |
|
191
|
|
|
{ |
|
192
|
|
|
const Active = 0; |
|
193
|
|
|
const Blocked = 1; |
|
194
|
|
|
const Deleted = 2; |
|
195
|
|
|
|
|
196
|
2 |
|
public static function fromXML(?string $value) : ?int |
|
197
|
|
|
{ |
|
198
|
2 |
|
switch (strtolower($value ?: "")) { |
|
199
|
2 |
|
case "active": |
|
200
|
1 |
|
return static::Active; |
|
201
|
1 |
|
case "blocked": |
|
202
|
1 |
|
return static::Blocked; |
|
203
|
|
|
case "deleted": |
|
204
|
|
|
return static::Deleted; |
|
205
|
|
|
default: |
|
206
|
|
|
return null; |
|
207
|
|
|
} |
|
208
|
|
|
} |
|
209
|
|
|
} |
|
210
|
|
|
|
|
211
|
|
|
abstract class MediaPriceType |
|
212
|
|
|
{ |
|
213
|
|
|
const Free = 0; |
|
214
|
|
|
const Rent = 1; |
|
215
|
|
|
const Purchase = 2; |
|
216
|
|
|
const Package = 3; |
|
217
|
|
|
const Subscription = 4; |
|
218
|
|
|
|
|
219
|
2 |
|
public static function fromXML(?string $value) : ?int |
|
220
|
|
|
{ |
|
221
|
2 |
|
switch (strtolower($value ?: "")) { |
|
222
|
2 |
|
case "free": |
|
223
|
|
|
return static::Free; |
|
224
|
2 |
|
case "rent": |
|
225
|
1 |
|
return static::Rent; |
|
226
|
1 |
|
case "purchase": |
|
227
|
|
|
return static::Purchase; |
|
228
|
1 |
|
case "package": |
|
229
|
|
|
return static::Package; |
|
230
|
1 |
|
case "subscription": |
|
231
|
|
|
return static::Subscription; |
|
232
|
|
|
default: |
|
233
|
1 |
|
return null; |
|
234
|
|
|
} |
|
235
|
|
|
} |
|
236
|
|
|
} |
|
237
|
|
|
|
|
238
|
|
|
abstract class MediaRightsStatus |
|
239
|
|
|
{ |
|
240
|
|
|
const UserCreated = 0; |
|
241
|
|
|
const Official = 1; |
|
242
|
|
|
|
|
243
|
1 |
|
public static function fromXML(?string $value) : ?int |
|
244
|
|
|
{ |
|
245
|
1 |
|
switch (strtolower($value ?: "")) { |
|
246
|
1 |
|
case "usercreated": |
|
247
|
|
|
return static::UserCreated; |
|
248
|
1 |
|
case "official": |
|
249
|
1 |
|
return static::Official; |
|
250
|
|
|
default: |
|
251
|
|
|
return null; |
|
252
|
|
|
} |
|
253
|
|
|
} |
|
254
|
|
|
} |
|
255
|
|
|
|
|
256
|
|
|
class MediaCredit |
|
257
|
|
|
{ |
|
258
|
|
|
/** |
|
259
|
|
|
* @var int |
|
260
|
|
|
*/ |
|
261
|
|
|
protected $scheme; |
|
262
|
|
|
|
|
263
|
|
|
/** |
|
264
|
|
|
* @var string |
|
265
|
|
|
*/ |
|
266
|
|
|
protected $role; |
|
267
|
|
|
|
|
268
|
|
|
/** |
|
269
|
|
|
* @var string |
|
270
|
|
|
*/ |
|
271
|
|
|
protected $value; |
|
272
|
|
|
|
|
273
|
|
|
/** |
|
274
|
|
|
* @param int $scheme |
|
275
|
|
|
* @return MediaCredit |
|
276
|
|
|
*/ |
|
277
|
2 |
|
public function setScheme(int $scheme) : MediaCredit |
|
278
|
|
|
{ |
|
279
|
2 |
|
$this->scheme = $scheme; |
|
280
|
|
|
|
|
281
|
2 |
|
return $this; |
|
282
|
|
|
} |
|
283
|
|
|
|
|
284
|
|
|
/** |
|
285
|
|
|
* @return int |
|
286
|
|
|
*/ |
|
287
|
2 |
|
public function getScheme() : ? int |
|
288
|
|
|
{ |
|
289
|
2 |
|
return $this->scheme; |
|
290
|
|
|
} |
|
291
|
|
|
|
|
292
|
|
|
/** |
|
293
|
|
|
* @param string $role |
|
294
|
|
|
* @return MediaCredit |
|
295
|
|
|
*/ |
|
296
|
2 |
|
public function setRole(?string $role) : MediaCredit |
|
297
|
|
|
{ |
|
298
|
2 |
|
$this->role = $role; |
|
299
|
|
|
|
|
300
|
2 |
|
return $this; |
|
301
|
|
|
} |
|
302
|
|
|
|
|
303
|
2 |
|
public function getRole() : ? string |
|
304
|
|
|
{ |
|
305
|
2 |
|
return $this->role; |
|
306
|
|
|
} |
|
307
|
|
|
|
|
308
|
|
|
/** |
|
309
|
|
|
* @param string $value |
|
310
|
|
|
* @return MediaCredit |
|
311
|
|
|
*/ |
|
312
|
2 |
|
public function setValue(string $value) : MediaCredit |
|
313
|
|
|
{ |
|
314
|
2 |
|
$this->value = $value; |
|
315
|
|
|
|
|
316
|
2 |
|
return $this; |
|
317
|
|
|
} |
|
318
|
|
|
|
|
319
|
2 |
|
public function getValue() : string |
|
320
|
|
|
{ |
|
321
|
2 |
|
return $this->value; |
|
322
|
|
|
} |
|
323
|
|
|
} |
|
324
|
|
|
|
|
325
|
|
|
class MediaText |
|
326
|
|
|
{ |
|
327
|
|
|
/** |
|
328
|
|
|
* @var string |
|
329
|
|
|
*/ |
|
330
|
|
|
protected $value; |
|
331
|
|
|
|
|
332
|
|
|
/** |
|
333
|
|
|
* @var int |
|
334
|
|
|
*/ |
|
335
|
|
|
protected $type; |
|
336
|
|
|
|
|
337
|
|
|
/** |
|
338
|
|
|
* @var string |
|
339
|
|
|
*/ |
|
340
|
|
|
protected $lang; |
|
341
|
|
|
|
|
342
|
|
|
/** |
|
343
|
|
|
* @var \DateTime |
|
344
|
|
|
*/ |
|
345
|
|
|
protected $start; |
|
346
|
|
|
|
|
347
|
|
|
/** |
|
348
|
|
|
* @var \DateTime |
|
349
|
|
|
*/ |
|
350
|
|
|
protected $end; |
|
351
|
|
|
|
|
352
|
|
|
/** |
|
353
|
|
|
* @param string $value |
|
354
|
|
|
* @return MediaText |
|
355
|
|
|
*/ |
|
356
|
2 |
|
public function setValue(string $value) : MediaText |
|
357
|
|
|
{ |
|
358
|
2 |
|
$this->value = $value; |
|
359
|
2 |
|
return $this; |
|
360
|
|
|
} |
|
361
|
|
|
|
|
362
|
2 |
|
public function getValue() : string |
|
363
|
|
|
{ |
|
364
|
2 |
|
return $this->value; |
|
365
|
|
|
} |
|
366
|
|
|
|
|
367
|
|
|
/** |
|
368
|
|
|
* @param int $type |
|
369
|
|
|
* @return MediaText |
|
370
|
|
|
*/ |
|
371
|
2 |
|
public function setType(int $type) : MediaText |
|
372
|
|
|
{ |
|
373
|
2 |
|
$this->type = $type; |
|
374
|
2 |
|
return $this; |
|
375
|
|
|
} |
|
376
|
|
|
|
|
377
|
2 |
|
public function getType() : int |
|
378
|
|
|
{ |
|
379
|
2 |
|
return $this->type; |
|
380
|
|
|
} |
|
381
|
|
|
|
|
382
|
|
|
/** |
|
383
|
|
|
* @param string $lang |
|
384
|
|
|
* @return MediaText |
|
385
|
|
|
*/ |
|
386
|
2 |
|
public function setLang(? string $lang) : MediaText |
|
387
|
|
|
{ |
|
388
|
2 |
|
$this->lang = $lang; |
|
389
|
2 |
|
return $this; |
|
390
|
|
|
} |
|
391
|
|
|
|
|
392
|
2 |
|
public function getLang() : ? string |
|
393
|
|
|
{ |
|
394
|
2 |
|
return $this->lang; |
|
395
|
|
|
} |
|
396
|
|
|
|
|
397
|
|
|
/** |
|
398
|
|
|
* @param \DateTime $start |
|
399
|
|
|
* @return MediaText |
|
400
|
|
|
*/ |
|
401
|
1 |
|
public function setStart(? \DateTime $start) : MediaText |
|
402
|
|
|
{ |
|
403
|
1 |
|
$this->start = $start; |
|
404
|
1 |
|
return $this; |
|
405
|
|
|
} |
|
406
|
|
|
|
|
407
|
2 |
|
public function getStart() : ? \DateTime |
|
408
|
|
|
{ |
|
409
|
2 |
|
return $this->start; |
|
410
|
|
|
} |
|
411
|
|
|
|
|
412
|
|
|
/** |
|
413
|
|
|
* @param \DateTime $end |
|
414
|
|
|
* @return MediaText |
|
415
|
|
|
*/ |
|
416
|
1 |
|
public function setEnd(? \DateTime $end) : MediaText |
|
417
|
|
|
{ |
|
418
|
1 |
|
$this->end = $end; |
|
419
|
1 |
|
return $this; |
|
420
|
|
|
} |
|
421
|
|
|
|
|
422
|
2 |
|
public function getEnd() : ? \DateTime |
|
423
|
|
|
{ |
|
424
|
2 |
|
return $this->end; |
|
425
|
|
|
} |
|
426
|
|
|
} |
|
427
|
|
|
|
|
428
|
|
|
class MediaPrice |
|
429
|
|
|
{ |
|
430
|
|
|
/** |
|
431
|
|
|
* @var int |
|
432
|
|
|
*/ |
|
433
|
|
|
protected $type; |
|
434
|
|
|
|
|
435
|
|
|
/** |
|
436
|
|
|
* @var float |
|
437
|
|
|
*/ |
|
438
|
|
|
protected $value; |
|
439
|
|
|
|
|
440
|
|
|
/** |
|
441
|
|
|
* @var string |
|
442
|
|
|
*/ |
|
443
|
|
|
protected $currency; |
|
444
|
|
|
|
|
445
|
|
|
/** |
|
446
|
|
|
* @param int $type |
|
447
|
|
|
* @return MediaPrice |
|
448
|
|
|
*/ |
|
449
|
2 |
|
public function setType(? int $type) : MediaPrice |
|
450
|
|
|
{ |
|
451
|
2 |
|
$this->type = $type; |
|
452
|
2 |
|
return $this; |
|
453
|
|
|
} |
|
454
|
|
|
|
|
455
|
2 |
|
public function getType() : ? int |
|
456
|
|
|
{ |
|
457
|
2 |
|
return $this->type; |
|
458
|
|
|
} |
|
459
|
|
|
|
|
460
|
|
|
/** |
|
461
|
|
|
* @param float $value |
|
462
|
|
|
* @return MediaPrice |
|
463
|
|
|
*/ |
|
464
|
2 |
|
public function setValue(? float $value) : MediaPrice |
|
465
|
|
|
{ |
|
466
|
2 |
|
$this->value = $value; |
|
467
|
2 |
|
return $this; |
|
468
|
|
|
} |
|
469
|
|
|
|
|
470
|
2 |
|
public function getValue() : ? float |
|
471
|
|
|
{ |
|
472
|
2 |
|
return $this->value; |
|
473
|
|
|
} |
|
474
|
|
|
|
|
475
|
|
|
/** |
|
476
|
|
|
* @param string currency |
|
477
|
|
|
* @return MediaPrice |
|
478
|
|
|
*/ |
|
479
|
2 |
|
public function setCurrency(? string $currency) : MediaPrice |
|
480
|
|
|
{ |
|
481
|
2 |
|
$this->currency = $currency; |
|
482
|
2 |
|
return $this; |
|
483
|
|
|
} |
|
484
|
|
|
|
|
485
|
2 |
|
public function getCurrency() : ? string |
|
486
|
|
|
{ |
|
487
|
2 |
|
return $this->currency; |
|
488
|
|
|
} |
|
489
|
|
|
} |
|
490
|
|
|
|
|
491
|
|
|
class MediaSubtitle |
|
492
|
|
|
{ |
|
493
|
|
|
/** |
|
494
|
|
|
* @var string |
|
495
|
|
|
*/ |
|
496
|
|
|
protected $type; |
|
497
|
|
|
|
|
498
|
|
|
/** |
|
499
|
|
|
* @var string |
|
500
|
|
|
*/ |
|
501
|
|
|
protected $lang; |
|
502
|
|
|
|
|
503
|
|
|
/** |
|
504
|
|
|
* @var string |
|
505
|
|
|
*/ |
|
506
|
|
|
protected $url; |
|
507
|
|
|
|
|
508
|
|
|
/** |
|
509
|
|
|
* @param string $type |
|
510
|
|
|
* @return MediaSubtitle |
|
511
|
|
|
*/ |
|
512
|
1 |
|
public function setType(? string $type) : MediaSubtitle |
|
513
|
|
|
{ |
|
514
|
1 |
|
$this->type = $type; |
|
515
|
1 |
|
return $this; |
|
516
|
|
|
} |
|
517
|
|
|
|
|
518
|
1 |
|
public function getType() : ? string |
|
519
|
|
|
{ |
|
520
|
1 |
|
return $this->type; |
|
521
|
|
|
} |
|
522
|
|
|
|
|
523
|
|
|
/** |
|
524
|
|
|
* @param string $lang |
|
525
|
|
|
* @return MediaSubtitle |
|
526
|
|
|
*/ |
|
527
|
1 |
|
public function setLang(? string $lang) : MediaSubtitle |
|
528
|
|
|
{ |
|
529
|
1 |
|
$this->lang = $lang; |
|
530
|
1 |
|
return $this; |
|
531
|
|
|
} |
|
532
|
|
|
|
|
533
|
1 |
|
public function getLang() : ? string |
|
534
|
|
|
{ |
|
535
|
1 |
|
return $this->lang; |
|
536
|
|
|
} |
|
537
|
|
|
|
|
538
|
|
|
/** |
|
539
|
|
|
* @param string url |
|
540
|
|
|
* @return MediaSubtitle |
|
541
|
|
|
*/ |
|
542
|
1 |
|
public function setUrl(? string $url) : MediaSubtitle |
|
543
|
|
|
{ |
|
544
|
1 |
|
$this->url = $url; |
|
545
|
1 |
|
return $this; |
|
546
|
|
|
} |
|
547
|
|
|
|
|
548
|
1 |
|
public function getUrl() : ? string |
|
549
|
|
|
{ |
|
550
|
1 |
|
return $this->url; |
|
551
|
|
|
} |
|
552
|
|
|
} |
|
553
|
|
|
|
|
554
|
|
|
class MediaScene |
|
555
|
|
|
{ |
|
556
|
|
|
/** |
|
557
|
|
|
* @var string |
|
558
|
|
|
*/ |
|
559
|
|
|
protected $title; |
|
560
|
|
|
|
|
561
|
|
|
/** |
|
562
|
|
|
* @var string |
|
563
|
|
|
*/ |
|
564
|
|
|
protected $description; |
|
565
|
|
|
|
|
566
|
|
|
/** |
|
567
|
|
|
* @var \DateTime |
|
568
|
|
|
*/ |
|
569
|
|
|
protected $startTime; |
|
570
|
|
|
|
|
571
|
|
|
/** |
|
572
|
|
|
* @var \DateTime |
|
573
|
|
|
*/ |
|
574
|
|
|
protected $endTime; |
|
575
|
|
|
|
|
576
|
|
|
/** |
|
577
|
|
|
* @param string $title |
|
578
|
|
|
* @return MediaScene |
|
579
|
|
|
*/ |
|
580
|
1 |
|
public function setTitle(string $title) : MediaScene |
|
581
|
|
|
{ |
|
582
|
1 |
|
$this->title = $title; |
|
583
|
1 |
|
return $this; |
|
584
|
|
|
} |
|
585
|
|
|
|
|
586
|
1 |
|
public function getTitle() : string |
|
587
|
|
|
{ |
|
588
|
1 |
|
return $this->title; |
|
589
|
|
|
} |
|
590
|
|
|
|
|
591
|
|
|
/** |
|
592
|
|
|
* @param string $description |
|
593
|
|
|
* @return MediaScene |
|
594
|
|
|
*/ |
|
595
|
1 |
|
public function setDescription(? string $description) : MediaScene |
|
596
|
|
|
{ |
|
597
|
1 |
|
$this->description = $description; |
|
598
|
1 |
|
return $this; |
|
599
|
|
|
} |
|
600
|
|
|
|
|
601
|
1 |
|
public function getDescription() : ? string |
|
602
|
|
|
{ |
|
603
|
1 |
|
return $this->description; |
|
604
|
|
|
} |
|
605
|
|
|
|
|
606
|
|
|
/** |
|
607
|
|
|
* @param \DateTime $startTime |
|
608
|
|
|
* @return MediaScene |
|
609
|
|
|
*/ |
|
610
|
1 |
|
public function setStartTime(? \DateTime $startTime) : MediaScene |
|
611
|
|
|
{ |
|
612
|
1 |
|
$this->startTime = $startTime; |
|
613
|
1 |
|
return $this; |
|
614
|
|
|
} |
|
615
|
|
|
|
|
616
|
1 |
|
public function getStartTime() : ? \DateTime |
|
617
|
|
|
{ |
|
618
|
1 |
|
return $this->startTime; |
|
619
|
|
|
} |
|
620
|
|
|
|
|
621
|
|
|
/** |
|
622
|
|
|
* @param \DateTime $endTime |
|
623
|
|
|
* @return MediaScene |
|
624
|
|
|
*/ |
|
625
|
1 |
|
public function setEndTime(? \DateTime $endTime) : MediaScene |
|
626
|
|
|
{ |
|
627
|
1 |
|
$this->endTime = $endTime; |
|
628
|
1 |
|
return $this; |
|
629
|
|
|
} |
|
630
|
|
|
|
|
631
|
1 |
|
public function getEndTime() : ? \DateTime |
|
632
|
|
|
{ |
|
633
|
1 |
|
return $this->endTime; |
|
634
|
|
|
} |
|
635
|
|
|
} |
|
636
|
|
|
|
|
637
|
|
|
|
|
638
|
|
|
class Media implements MediaInterface |
|
639
|
|
|
{ |
|
640
|
|
|
/** |
|
641
|
|
|
* @var string |
|
642
|
|
|
*/ |
|
643
|
|
|
protected $nodeName; |
|
644
|
|
|
|
|
645
|
|
|
/** |
|
646
|
|
|
* @var string |
|
647
|
|
|
*/ |
|
648
|
|
|
protected $type; |
|
649
|
|
|
|
|
650
|
|
|
/** |
|
651
|
|
|
* @var string |
|
652
|
|
|
*/ |
|
653
|
|
|
protected $url; |
|
654
|
|
|
|
|
655
|
|
|
/** |
|
656
|
|
|
* @var string |
|
657
|
|
|
*/ |
|
658
|
|
|
protected $length; |
|
659
|
|
|
|
|
660
|
|
|
/** |
|
661
|
|
|
* @var string |
|
662
|
|
|
*/ |
|
663
|
|
|
protected $title; |
|
664
|
|
|
|
|
665
|
|
|
/** |
|
666
|
|
|
* @var string |
|
667
|
|
|
*/ |
|
668
|
|
|
protected $description; |
|
669
|
|
|
|
|
670
|
|
|
/** |
|
671
|
|
|
* @var string |
|
672
|
|
|
*/ |
|
673
|
|
|
protected $thumbnail; |
|
674
|
|
|
|
|
675
|
|
|
/** |
|
676
|
|
|
* @var int |
|
677
|
|
|
*/ |
|
678
|
|
|
protected $contentFileSize; |
|
679
|
|
|
|
|
680
|
|
|
/** |
|
681
|
|
|
* @var int |
|
682
|
|
|
*/ |
|
683
|
|
|
protected $contentBitrate; |
|
684
|
|
|
|
|
685
|
|
|
/** |
|
686
|
|
|
* @var int |
|
687
|
|
|
*/ |
|
688
|
|
|
protected $contentFramerate; |
|
689
|
|
|
|
|
690
|
|
|
/** |
|
691
|
|
|
* @var int |
|
692
|
|
|
*/ |
|
693
|
|
|
protected $contentSamplingrate; |
|
694
|
|
|
|
|
695
|
|
|
/** |
|
696
|
|
|
* @var int |
|
697
|
|
|
*/ |
|
698
|
|
|
protected $contentDuration; |
|
699
|
|
|
|
|
700
|
|
|
/** |
|
701
|
|
|
* @var int |
|
702
|
|
|
*/ |
|
703
|
|
|
protected $contentHeight; |
|
704
|
|
|
|
|
705
|
|
|
/** |
|
706
|
|
|
* @var int |
|
707
|
|
|
*/ |
|
708
|
|
|
protected $contentWidth; |
|
709
|
|
|
|
|
710
|
|
|
/** |
|
711
|
|
|
* @var string |
|
712
|
|
|
*/ |
|
713
|
|
|
protected $contentLang; |
|
714
|
|
|
|
|
715
|
|
|
/** |
|
716
|
|
|
* @var int |
|
717
|
|
|
*/ |
|
718
|
|
|
protected $contentExpression; |
|
719
|
|
|
|
|
720
|
|
|
/** |
|
721
|
|
|
* @var int |
|
722
|
|
|
*/ |
|
723
|
|
|
protected $contentMedium; |
|
724
|
|
|
|
|
725
|
|
|
/** |
|
726
|
|
|
* @var string |
|
727
|
|
|
*/ |
|
728
|
|
|
protected $rights; |
|
729
|
|
|
|
|
730
|
|
|
/** |
|
731
|
|
|
* @var string |
|
732
|
|
|
*/ |
|
733
|
|
|
protected $rating; |
|
734
|
|
|
|
|
735
|
|
|
|
|
736
|
|
|
/** |
|
737
|
|
|
* @var string |
|
738
|
|
|
*/ |
|
739
|
|
|
protected $ratingScheme; |
|
740
|
|
|
|
|
741
|
|
|
/** |
|
742
|
|
|
* @var int |
|
743
|
|
|
*/ |
|
744
|
|
|
protected $titleType; |
|
745
|
|
|
|
|
746
|
|
|
/** |
|
747
|
|
|
* @var int |
|
748
|
|
|
*/ |
|
749
|
|
|
protected $descriptionType; |
|
750
|
|
|
|
|
751
|
|
|
/** |
|
752
|
|
|
* @var array |
|
753
|
|
|
*/ |
|
754
|
|
|
protected $keywords = array(); |
|
755
|
|
|
|
|
756
|
|
|
/** |
|
757
|
|
|
* @var int |
|
758
|
|
|
*/ |
|
759
|
|
|
protected $thumbnailWidth; |
|
760
|
|
|
|
|
761
|
|
|
/** |
|
762
|
|
|
* @var int |
|
763
|
|
|
*/ |
|
764
|
|
|
protected $thumbnailHeight; |
|
765
|
|
|
|
|
766
|
|
|
/** |
|
767
|
|
|
* @var DateTime |
|
768
|
|
|
*/ |
|
769
|
|
|
protected $thumbnailTime; |
|
770
|
|
|
|
|
771
|
|
|
/** |
|
772
|
|
|
* @var string |
|
773
|
|
|
*/ |
|
774
|
|
|
protected $category; |
|
775
|
|
|
|
|
776
|
|
|
/** |
|
777
|
|
|
* @var string |
|
778
|
|
|
*/ |
|
779
|
|
|
protected $categoryLabel; |
|
780
|
|
|
|
|
781
|
|
|
/** |
|
782
|
|
|
* @var string |
|
783
|
|
|
*/ |
|
784
|
|
|
protected $categoryScheme; |
|
785
|
|
|
|
|
786
|
|
|
/** |
|
787
|
|
|
* @var string |
|
788
|
|
|
*/ |
|
789
|
|
|
protected $hash; |
|
790
|
|
|
|
|
791
|
|
|
/** |
|
792
|
|
|
* @var string |
|
793
|
|
|
*/ |
|
794
|
|
|
protected $hashAlgo; |
|
795
|
|
|
|
|
796
|
|
|
/** |
|
797
|
|
|
* @var string |
|
798
|
|
|
*/ |
|
799
|
|
|
protected $playerUrl; |
|
800
|
|
|
|
|
801
|
|
|
/** |
|
802
|
|
|
* @var int |
|
803
|
|
|
*/ |
|
804
|
|
|
protected $playerWidth; |
|
805
|
|
|
|
|
806
|
|
|
/** |
|
807
|
|
|
* @var int |
|
808
|
|
|
*/ |
|
809
|
|
|
protected $playerHeight; |
|
810
|
|
|
|
|
811
|
|
|
/** |
|
812
|
|
|
* @var string |
|
813
|
|
|
*/ |
|
814
|
|
|
protected $copyright; |
|
815
|
|
|
|
|
816
|
|
|
/** |
|
817
|
|
|
* @var string |
|
818
|
|
|
*/ |
|
819
|
|
|
protected $copyrightUrl; |
|
820
|
|
|
|
|
821
|
|
|
/** |
|
822
|
|
|
* @var string |
|
823
|
|
|
*/ |
|
824
|
|
|
protected $restriction; |
|
825
|
|
|
|
|
826
|
|
|
/** |
|
827
|
|
|
* @var int |
|
828
|
|
|
*/ |
|
829
|
|
|
protected $restrictionType; |
|
830
|
|
|
|
|
831
|
|
|
/** |
|
832
|
|
|
* @var int |
|
833
|
|
|
*/ |
|
834
|
|
|
protected $restrictionRelationship; |
|
835
|
|
|
|
|
836
|
|
|
/** |
|
837
|
|
|
* @var float |
|
838
|
|
|
*/ |
|
839
|
|
|
protected $starRatingAverage; |
|
840
|
|
|
|
|
841
|
|
|
/** |
|
842
|
|
|
* @var int |
|
843
|
|
|
*/ |
|
844
|
|
|
protected $starRatingCount; |
|
845
|
|
|
|
|
846
|
|
|
/** |
|
847
|
|
|
* @var int |
|
848
|
|
|
*/ |
|
849
|
|
|
protected $starRatingMin; |
|
850
|
|
|
|
|
851
|
|
|
/** |
|
852
|
|
|
* @var int |
|
853
|
|
|
*/ |
|
854
|
|
|
protected $starRatingMax; |
|
855
|
|
|
|
|
856
|
|
|
/** |
|
857
|
|
|
* @var int |
|
858
|
|
|
*/ |
|
859
|
|
|
protected $nbViews; |
|
860
|
|
|
|
|
861
|
|
|
/** |
|
862
|
|
|
* @var int |
|
863
|
|
|
*/ |
|
864
|
|
|
protected $nbFavorites; |
|
865
|
|
|
|
|
866
|
|
|
/** |
|
867
|
|
|
* @var array |
|
868
|
|
|
*/ |
|
869
|
|
|
protected $tags = array(); |
|
870
|
|
|
|
|
871
|
|
|
/** |
|
872
|
|
|
* @var array |
|
873
|
|
|
*/ |
|
874
|
|
|
protected $comments = array(); |
|
875
|
|
|
|
|
876
|
|
|
/** |
|
877
|
|
|
* @var string |
|
878
|
|
|
*/ |
|
879
|
|
|
protected $embedUrl; |
|
880
|
|
|
|
|
881
|
|
|
/** |
|
882
|
|
|
* @var int |
|
883
|
|
|
*/ |
|
884
|
|
|
protected $embedWidth; |
|
885
|
|
|
|
|
886
|
|
|
/** |
|
887
|
|
|
* @var int |
|
888
|
|
|
*/ |
|
889
|
|
|
protected $embedHeight; |
|
890
|
|
|
|
|
891
|
|
|
/** |
|
892
|
|
|
* @var array |
|
893
|
|
|
*/ |
|
894
|
|
|
protected $embedParams = array(); |
|
895
|
|
|
|
|
896
|
|
|
/** |
|
897
|
|
|
* @var array |
|
898
|
|
|
*/ |
|
899
|
|
|
protected $responses = array(); |
|
900
|
|
|
|
|
901
|
|
|
/** |
|
902
|
|
|
* @var array |
|
903
|
|
|
*/ |
|
904
|
|
|
protected $backlinks = array(); |
|
905
|
|
|
|
|
906
|
|
|
/** |
|
907
|
|
|
* @var int |
|
908
|
|
|
*/ |
|
909
|
|
|
protected $status; |
|
910
|
|
|
|
|
911
|
|
|
/** |
|
912
|
|
|
* @var string |
|
913
|
|
|
*/ |
|
914
|
|
|
protected $statusReason; |
|
915
|
|
|
|
|
916
|
|
|
/** |
|
917
|
|
|
* @var string |
|
918
|
|
|
*/ |
|
919
|
|
|
protected $license; |
|
920
|
|
|
|
|
921
|
|
|
/** |
|
922
|
|
|
* @var string |
|
923
|
|
|
*/ |
|
924
|
|
|
protected $licenseUrl; |
|
925
|
|
|
|
|
926
|
|
|
/** |
|
927
|
|
|
* @var string |
|
928
|
|
|
*/ |
|
929
|
|
|
protected $licenseType; |
|
930
|
|
|
|
|
931
|
|
|
/** |
|
932
|
|
|
* @var string |
|
933
|
|
|
*/ |
|
934
|
|
|
protected $peerLink; |
|
935
|
|
|
|
|
936
|
|
|
/** |
|
937
|
|
|
* @var string |
|
938
|
|
|
*/ |
|
939
|
|
|
protected $peerLinkType; |
|
940
|
|
|
|
|
941
|
|
|
/** |
|
942
|
|
|
* @var array |
|
943
|
|
|
*/ |
|
944
|
|
|
protected $credits = array(); |
|
945
|
|
|
|
|
946
|
|
|
/** |
|
947
|
|
|
* @var array |
|
948
|
|
|
*/ |
|
949
|
|
|
protected $texts = array(); |
|
950
|
|
|
|
|
951
|
|
|
/** |
|
952
|
|
|
* @var array |
|
953
|
|
|
*/ |
|
954
|
|
|
protected $prices = array(); |
|
955
|
|
|
|
|
956
|
|
|
/** |
|
957
|
|
|
* @var array |
|
958
|
|
|
*/ |
|
959
|
|
|
protected $subTitles = array(); |
|
960
|
|
|
|
|
961
|
|
|
/** |
|
962
|
|
|
* @var array |
|
963
|
|
|
*/ |
|
964
|
|
|
protected $scenes = array(); |
|
965
|
|
|
|
|
966
|
|
|
/** |
|
967
|
|
|
* @var bool |
|
968
|
|
|
*/ |
|
969
|
|
|
protected $default = true; |
|
970
|
|
|
|
|
971
|
|
|
/** |
|
972
|
|
|
* @return string |
|
973
|
|
|
*/ |
|
974
|
|
|
public function getNodeName() : string |
|
975
|
|
|
{ |
|
976
|
|
|
return $this->nodeName; |
|
977
|
|
|
} |
|
978
|
|
|
|
|
979
|
|
|
/** |
|
980
|
|
|
* @param string $nodeName |
|
981
|
|
|
* @return MediaInterface |
|
982
|
|
|
*/ |
|
983
|
51 |
|
public function setNodeName(string $nodeName) : MediaInterface |
|
984
|
|
|
{ |
|
985
|
51 |
|
$this->nodeName = $nodeName; |
|
986
|
|
|
|
|
987
|
51 |
|
return $this; |
|
988
|
|
|
} |
|
989
|
|
|
|
|
990
|
|
|
/** |
|
991
|
|
|
* @return string |
|
992
|
|
|
*/ |
|
993
|
7 |
|
public function getType() : ? string |
|
994
|
|
|
{ |
|
995
|
7 |
|
return $this->type; |
|
996
|
|
|
} |
|
997
|
|
|
|
|
998
|
|
|
/** |
|
999
|
|
|
* @param string $type |
|
1000
|
|
|
* @return MediaInterface |
|
1001
|
|
|
*/ |
|
1002
|
54 |
|
public function setType(?string $type) : MediaInterface |
|
1003
|
|
|
{ |
|
1004
|
54 |
|
$this->type = $type; |
|
1005
|
|
|
|
|
1006
|
54 |
|
return $this; |
|
1007
|
|
|
} |
|
1008
|
|
|
|
|
1009
|
|
|
/** |
|
1010
|
|
|
* @return string |
|
1011
|
|
|
*/ |
|
1012
|
10 |
|
public function getUrl() : ? string |
|
1013
|
|
|
{ |
|
1014
|
10 |
|
return $this->url; |
|
1015
|
|
|
} |
|
1016
|
|
|
|
|
1017
|
|
|
/** |
|
1018
|
|
|
* @param string $url |
|
1019
|
|
|
* @return MediaInterface |
|
1020
|
|
|
*/ |
|
1021
|
53 |
|
public function setUrl(?string $url) : MediaInterface |
|
1022
|
|
|
{ |
|
1023
|
53 |
|
$this->url = $url; |
|
1024
|
|
|
|
|
1025
|
53 |
|
return $this; |
|
1026
|
|
|
} |
|
1027
|
|
|
|
|
1028
|
|
|
/** |
|
1029
|
|
|
* @return string |
|
1030
|
|
|
*/ |
|
1031
|
3 |
|
public function getLength() : ? string |
|
1032
|
|
|
{ |
|
1033
|
3 |
|
return $this->length; |
|
1034
|
|
|
} |
|
1035
|
|
|
|
|
1036
|
|
|
/** |
|
1037
|
|
|
* @param string $length |
|
1038
|
|
|
* @return MediaInterface |
|
1039
|
|
|
*/ |
|
1040
|
6 |
|
public function setLength(?string $length) : MediaInterface |
|
1041
|
|
|
{ |
|
1042
|
6 |
|
$this->length = $length; |
|
1043
|
|
|
|
|
1044
|
6 |
|
return $this; |
|
1045
|
|
|
} |
|
1046
|
|
|
|
|
1047
|
|
|
/** |
|
1048
|
|
|
* @return string |
|
1049
|
|
|
*/ |
|
1050
|
4 |
|
public function getTitle() : ? string |
|
1051
|
|
|
{ |
|
1052
|
4 |
|
return $this->title; |
|
1053
|
|
|
} |
|
1054
|
|
|
|
|
1055
|
|
|
/** |
|
1056
|
|
|
* @param string $title |
|
1057
|
|
|
* @return MediaInterface |
|
1058
|
|
|
*/ |
|
1059
|
4 |
|
public function setTitle(?string $title) : MediaInterface |
|
1060
|
|
|
{ |
|
1061
|
4 |
|
$this->title = $title; |
|
1062
|
|
|
|
|
1063
|
4 |
|
return $this; |
|
1064
|
|
|
} |
|
1065
|
|
|
|
|
1066
|
|
|
/** |
|
1067
|
|
|
* @return string |
|
1068
|
|
|
*/ |
|
1069
|
5 |
|
public function getDescription() : ? string |
|
1070
|
|
|
{ |
|
1071
|
5 |
|
return $this->description; |
|
1072
|
|
|
} |
|
1073
|
|
|
|
|
1074
|
|
|
/** |
|
1075
|
|
|
* @param string $description |
|
1076
|
|
|
* @return MediaInterface |
|
1077
|
|
|
*/ |
|
1078
|
5 |
|
public function setDescription(?string $description) : MediaInterface |
|
1079
|
|
|
{ |
|
1080
|
5 |
|
$this->description = $description; |
|
1081
|
|
|
|
|
1082
|
5 |
|
return $this; |
|
1083
|
|
|
} |
|
1084
|
|
|
|
|
1085
|
|
|
/** |
|
1086
|
|
|
* @return string |
|
1087
|
|
|
*/ |
|
1088
|
3 |
|
public function getThumbnail() : ? string |
|
1089
|
|
|
{ |
|
1090
|
3 |
|
return $this->thumbnail; |
|
1091
|
|
|
} |
|
1092
|
|
|
|
|
1093
|
|
|
/** |
|
1094
|
|
|
* @param string $thumbnail |
|
1095
|
|
|
* @return MediaInterface |
|
1096
|
|
|
*/ |
|
1097
|
3 |
|
public function setThumbnail(?string $thumbnail) : MediaInterface |
|
1098
|
|
|
{ |
|
1099
|
3 |
|
$this->thumbnail = $thumbnail; |
|
1100
|
|
|
|
|
1101
|
3 |
|
return $this; |
|
1102
|
|
|
} |
|
1103
|
|
|
|
|
1104
|
|
|
/** |
|
1105
|
|
|
* @return int |
|
1106
|
|
|
*/ |
|
1107
|
2 |
|
public function getContentFileSize() : ?int |
|
1108
|
|
|
{ |
|
1109
|
2 |
|
return $this->contentFileSize; |
|
1110
|
|
|
} |
|
1111
|
|
|
|
|
1112
|
|
|
/** |
|
1113
|
|
|
* @param int $contentFileSize |
|
1114
|
|
|
* @return MediaInterface |
|
1115
|
|
|
*/ |
|
1116
|
47 |
|
public function setContentFileSize(?int $contentFileSize) : MediaInterface |
|
1117
|
|
|
{ |
|
1118
|
47 |
|
$this->contentFileSize = $contentFileSize; |
|
1119
|
|
|
|
|
1120
|
47 |
|
return $this; |
|
1121
|
|
|
} |
|
1122
|
|
|
|
|
1123
|
|
|
/** |
|
1124
|
|
|
* @return int |
|
1125
|
|
|
*/ |
|
1126
|
2 |
|
public function getContentBitrate() : ?int |
|
1127
|
|
|
{ |
|
1128
|
2 |
|
return $this->contentBitrate; |
|
1129
|
|
|
} |
|
1130
|
|
|
|
|
1131
|
|
|
/** |
|
1132
|
|
|
* @param int $contentBitrate |
|
1133
|
|
|
* @return MediaInterface |
|
1134
|
|
|
*/ |
|
1135
|
47 |
|
public function setContentBitrate(?int $contentBitrate) : MediaInterface |
|
1136
|
|
|
{ |
|
1137
|
47 |
|
$this->contentBitrate = $contentBitrate; |
|
1138
|
|
|
|
|
1139
|
47 |
|
return $this; |
|
1140
|
|
|
} |
|
1141
|
|
|
|
|
1142
|
|
|
/** |
|
1143
|
|
|
* @return int |
|
1144
|
|
|
*/ |
|
1145
|
2 |
|
public function getContentFramerate() : ?int |
|
1146
|
|
|
{ |
|
1147
|
2 |
|
return $this->contentFramerate; |
|
1148
|
|
|
} |
|
1149
|
|
|
|
|
1150
|
|
|
/** |
|
1151
|
|
|
* @param int $contentFramerate |
|
1152
|
|
|
* @return MediaInterface |
|
1153
|
|
|
*/ |
|
1154
|
47 |
|
public function setContentFramerate(?int $contentFramerate) : MediaInterface |
|
1155
|
|
|
{ |
|
1156
|
47 |
|
$this->contentFramerate = $contentFramerate; |
|
1157
|
|
|
|
|
1158
|
47 |
|
return $this; |
|
1159
|
|
|
} |
|
1160
|
|
|
|
|
1161
|
|
|
/** |
|
1162
|
|
|
* @return float |
|
1163
|
|
|
*/ |
|
1164
|
2 |
|
public function getContentSamplingrate() : ?float |
|
1165
|
|
|
{ |
|
1166
|
2 |
|
return $this->contentSamplingrate; |
|
1167
|
|
|
} |
|
1168
|
|
|
|
|
1169
|
|
|
/** |
|
1170
|
|
|
* @param float $contentSamplingrate |
|
1171
|
|
|
* @return MediaInterface |
|
1172
|
|
|
*/ |
|
1173
|
47 |
|
public function setContentSamplingrate(?float $contentSamplingrate) : MediaInterface |
|
1174
|
|
|
{ |
|
1175
|
47 |
|
$this->contentSamplingrate = $contentSamplingrate; |
|
|
|
|
|
|
1176
|
|
|
|
|
1177
|
47 |
|
return $this; |
|
1178
|
|
|
} |
|
1179
|
|
|
|
|
1180
|
|
|
/** |
|
1181
|
|
|
* @return int |
|
1182
|
|
|
*/ |
|
1183
|
2 |
|
public function getContentDuration() : ?int |
|
1184
|
|
|
{ |
|
1185
|
2 |
|
return $this->contentDuration; |
|
1186
|
|
|
} |
|
1187
|
|
|
|
|
1188
|
|
|
/** |
|
1189
|
|
|
* @param int $contentDuration |
|
1190
|
|
|
* @return MediaInterface |
|
1191
|
|
|
*/ |
|
1192
|
47 |
|
public function setContentDuration(?int $contentDuration) : MediaInterface |
|
1193
|
|
|
{ |
|
1194
|
47 |
|
$this->contentDuration = $contentDuration; |
|
1195
|
|
|
|
|
1196
|
47 |
|
return $this; |
|
1197
|
|
|
} |
|
1198
|
|
|
|
|
1199
|
|
|
/** |
|
1200
|
|
|
* @return int |
|
1201
|
|
|
*/ |
|
1202
|
2 |
|
public function getContentHeight() : ?int |
|
1203
|
|
|
{ |
|
1204
|
2 |
|
return $this->contentHeight; |
|
1205
|
|
|
} |
|
1206
|
|
|
|
|
1207
|
|
|
/** |
|
1208
|
|
|
* @param int $contentHeight |
|
1209
|
|
|
* @return MediaInterface |
|
1210
|
|
|
*/ |
|
1211
|
47 |
|
public function setContentHeight(?int $contentHeight) : MediaInterface |
|
1212
|
|
|
{ |
|
1213
|
47 |
|
$this->contentHeight = $contentHeight; |
|
1214
|
|
|
|
|
1215
|
47 |
|
return $this; |
|
1216
|
|
|
} |
|
1217
|
|
|
|
|
1218
|
|
|
/** |
|
1219
|
|
|
* @return int |
|
1220
|
|
|
*/ |
|
1221
|
2 |
|
public function getContentWidth() : ?int |
|
1222
|
|
|
{ |
|
1223
|
2 |
|
return $this->contentWidth; |
|
1224
|
|
|
} |
|
1225
|
|
|
|
|
1226
|
|
|
/** |
|
1227
|
|
|
* @param int $contentWidth |
|
1228
|
|
|
* @return MediaInterface |
|
1229
|
|
|
*/ |
|
1230
|
47 |
|
public function setContentWidth(?int $contentWidth) : MediaInterface |
|
1231
|
|
|
{ |
|
1232
|
47 |
|
$this->contentWidth = $contentWidth; |
|
1233
|
|
|
|
|
1234
|
47 |
|
return $this; |
|
1235
|
|
|
} |
|
1236
|
|
|
|
|
1237
|
|
|
/** |
|
1238
|
|
|
* @return string |
|
1239
|
|
|
*/ |
|
1240
|
2 |
|
public function getContentLang() : ?string |
|
1241
|
|
|
{ |
|
1242
|
2 |
|
return $this->contentLang; |
|
1243
|
|
|
} |
|
1244
|
|
|
|
|
1245
|
|
|
/** |
|
1246
|
|
|
* @param string $contentLang |
|
1247
|
|
|
* @return MediaInterface |
|
1248
|
|
|
*/ |
|
1249
|
47 |
|
public function setContentLang(?string $contentLang) : MediaInterface |
|
1250
|
|
|
{ |
|
1251
|
47 |
|
$this->contentLang = $contentLang; |
|
1252
|
|
|
|
|
1253
|
47 |
|
return $this; |
|
1254
|
|
|
} |
|
1255
|
|
|
|
|
1256
|
|
|
/** |
|
1257
|
|
|
* @return int |
|
1258
|
|
|
*/ |
|
1259
|
2 |
|
public function getContentExpression() : ?int |
|
1260
|
|
|
{ |
|
1261
|
2 |
|
return $this->contentExpression; |
|
1262
|
|
|
} |
|
1263
|
|
|
|
|
1264
|
|
|
/** |
|
1265
|
|
|
* @param int $contentExpression |
|
1266
|
|
|
* @return MediaInterface |
|
1267
|
|
|
*/ |
|
1268
|
47 |
|
public function setContentExpression(?int $contentExpression) : MediaInterface |
|
1269
|
|
|
{ |
|
1270
|
47 |
|
$this->contentExpression = $contentExpression; |
|
1271
|
|
|
|
|
1272
|
47 |
|
return $this; |
|
1273
|
|
|
} |
|
1274
|
|
|
|
|
1275
|
|
|
/** |
|
1276
|
|
|
* @return int |
|
1277
|
|
|
*/ |
|
1278
|
2 |
|
public function getContentMedium() : ?int |
|
1279
|
|
|
{ |
|
1280
|
2 |
|
return $this->contentMedium; |
|
1281
|
|
|
} |
|
1282
|
|
|
|
|
1283
|
|
|
/** |
|
1284
|
|
|
* @param int $contentMedium |
|
1285
|
|
|
* @return MediaInterface |
|
1286
|
|
|
*/ |
|
1287
|
47 |
|
public function setContentMedium(?int $contentMedium) : MediaInterface |
|
1288
|
|
|
{ |
|
1289
|
47 |
|
$this->contentMedium = $contentMedium; |
|
1290
|
|
|
|
|
1291
|
47 |
|
return $this; |
|
1292
|
|
|
} |
|
1293
|
|
|
|
|
1294
|
|
|
/** |
|
1295
|
|
|
* @return int |
|
1296
|
|
|
*/ |
|
1297
|
1 |
|
public function getRights() : ?int |
|
1298
|
|
|
{ |
|
1299
|
1 |
|
return $this->rights; |
|
1300
|
|
|
} |
|
1301
|
|
|
|
|
1302
|
|
|
/** |
|
1303
|
|
|
* @param int $rights |
|
1304
|
|
|
* @return MediaInterface |
|
1305
|
|
|
*/ |
|
1306
|
1 |
|
public function setRights(int $rights) : MediaInterface |
|
1307
|
|
|
{ |
|
1308
|
1 |
|
$this->rights = $rights; |
|
|
|
|
|
|
1309
|
|
|
|
|
1310
|
1 |
|
return $this; |
|
1311
|
|
|
} |
|
1312
|
|
|
|
|
1313
|
|
|
|
|
1314
|
|
|
/** |
|
1315
|
|
|
* @return string |
|
1316
|
|
|
*/ |
|
1317
|
2 |
|
public function getRating() : ?string |
|
1318
|
|
|
{ |
|
1319
|
2 |
|
return $this->rating; |
|
1320
|
|
|
} |
|
1321
|
|
|
|
|
1322
|
|
|
/** |
|
1323
|
|
|
* @param string $rating |
|
1324
|
|
|
* @return MediaInterface |
|
1325
|
|
|
*/ |
|
1326
|
2 |
|
public function setRating(?string $rating) : MediaInterface |
|
1327
|
|
|
{ |
|
1328
|
2 |
|
$this->rating = $rating; |
|
1329
|
|
|
|
|
1330
|
2 |
|
return $this; |
|
1331
|
|
|
} |
|
1332
|
|
|
|
|
1333
|
|
|
/** |
|
1334
|
|
|
* @return string |
|
1335
|
|
|
*/ |
|
1336
|
2 |
|
public function getRatingScheme() : ?string |
|
1337
|
|
|
{ |
|
1338
|
2 |
|
return $this->ratingScheme; |
|
1339
|
|
|
} |
|
1340
|
|
|
|
|
1341
|
|
|
/** |
|
1342
|
|
|
* @param string $ratingScheme |
|
1343
|
|
|
* @return MediaInterface |
|
1344
|
|
|
*/ |
|
1345
|
2 |
|
public function setRatingScheme(?string $ratingScheme) : MediaInterface |
|
1346
|
|
|
{ |
|
1347
|
2 |
|
$this->ratingScheme = $ratingScheme; |
|
1348
|
|
|
|
|
1349
|
2 |
|
return $this; |
|
1350
|
|
|
} |
|
1351
|
|
|
|
|
1352
|
|
|
|
|
1353
|
|
|
/** |
|
1354
|
|
|
* @return int |
|
1355
|
|
|
*/ |
|
1356
|
2 |
|
public function getTitleType() : ?int |
|
1357
|
|
|
{ |
|
1358
|
2 |
|
return $this->titleType; |
|
1359
|
|
|
} |
|
1360
|
|
|
|
|
1361
|
|
|
/** |
|
1362
|
|
|
* @param int $titleType |
|
1363
|
|
|
* @return MediaInterface |
|
1364
|
|
|
*/ |
|
1365
|
4 |
|
public function setTitleType(?int $titleType) : MediaInterface |
|
1366
|
|
|
{ |
|
1367
|
4 |
|
$this->titleType = $titleType; |
|
1368
|
|
|
|
|
1369
|
4 |
|
return $this; |
|
1370
|
|
|
} |
|
1371
|
|
|
|
|
1372
|
|
|
|
|
1373
|
|
|
/** |
|
1374
|
|
|
* @return int |
|
1375
|
|
|
*/ |
|
1376
|
2 |
|
public function getDescriptionType() : ?int |
|
1377
|
|
|
{ |
|
1378
|
2 |
|
return $this->descriptionType; |
|
1379
|
|
|
} |
|
1380
|
|
|
|
|
1381
|
|
|
/** |
|
1382
|
|
|
* @param int $descriptionType |
|
1383
|
|
|
* @return MediaInterface |
|
1384
|
|
|
*/ |
|
1385
|
5 |
|
public function setDescriptionType(?int $descriptionType) : MediaInterface |
|
1386
|
|
|
{ |
|
1387
|
5 |
|
$this->descriptionType = $descriptionType; |
|
1388
|
|
|
|
|
1389
|
5 |
|
return $this; |
|
1390
|
|
|
} |
|
1391
|
|
|
|
|
1392
|
|
|
/** |
|
1393
|
|
|
* @return array |
|
1394
|
|
|
*/ |
|
1395
|
1 |
|
public function getKeywords() : array |
|
1396
|
|
|
{ |
|
1397
|
1 |
|
return $this->keywords; |
|
1398
|
|
|
} |
|
1399
|
|
|
|
|
1400
|
|
|
/** |
|
1401
|
|
|
* @param array $keywords |
|
1402
|
|
|
* @return MediaInterface |
|
1403
|
|
|
*/ |
|
1404
|
1 |
|
public function setKeywords(array $keywords) : MediaInterface |
|
1405
|
|
|
{ |
|
1406
|
1 |
|
$this->keywords = $keywords; |
|
1407
|
|
|
|
|
1408
|
1 |
|
return $this; |
|
1409
|
|
|
} |
|
1410
|
|
|
|
|
1411
|
|
|
|
|
1412
|
|
|
/** |
|
1413
|
|
|
* @return int |
|
1414
|
|
|
*/ |
|
1415
|
2 |
|
public function getThumbnailWidth() : ?int |
|
1416
|
|
|
{ |
|
1417
|
2 |
|
return $this->thumbnailWidth; |
|
1418
|
|
|
} |
|
1419
|
|
|
|
|
1420
|
|
|
/** |
|
1421
|
|
|
* @param int $thumbnailWidth |
|
1422
|
|
|
* @return MediaInterface |
|
1423
|
|
|
*/ |
|
1424
|
3 |
|
public function setThumbnailWidth(?int $thumbnailWidth) : MediaInterface |
|
1425
|
|
|
{ |
|
1426
|
3 |
|
$this->thumbnailWidth = $thumbnailWidth; |
|
1427
|
|
|
|
|
1428
|
3 |
|
return $this; |
|
1429
|
|
|
} |
|
1430
|
|
|
|
|
1431
|
|
|
/** |
|
1432
|
|
|
* @return int |
|
1433
|
|
|
*/ |
|
1434
|
2 |
|
public function getThumbnailHeight() : ?int |
|
1435
|
|
|
{ |
|
1436
|
2 |
|
return $this->thumbnailHeight; |
|
1437
|
|
|
} |
|
1438
|
|
|
|
|
1439
|
|
|
/** |
|
1440
|
|
|
* @param int $thumbnailHeight |
|
1441
|
|
|
* @return MediaInterface |
|
1442
|
|
|
*/ |
|
1443
|
3 |
|
public function setThumbnailHeight(?int $thumbnailHeight) : MediaInterface |
|
1444
|
|
|
{ |
|
1445
|
3 |
|
$this->thumbnailHeight = $thumbnailHeight; |
|
1446
|
|
|
|
|
1447
|
3 |
|
return $this; |
|
1448
|
|
|
} |
|
1449
|
|
|
|
|
1450
|
|
|
/** |
|
1451
|
|
|
* @return DateTime |
|
1452
|
|
|
*/ |
|
1453
|
2 |
|
public function getThumbnailTime() : ? \DateTime |
|
1454
|
|
|
{ |
|
1455
|
2 |
|
return $this->thumbnailTime; |
|
1456
|
|
|
} |
|
1457
|
|
|
|
|
1458
|
|
|
/** |
|
1459
|
|
|
* @param DateTime $thumbnailTime |
|
1460
|
|
|
* @return MediaInterface |
|
1461
|
|
|
*/ |
|
1462
|
1 |
|
public function setThumbnailTime(? \DateTime $thumbnailTime) : MediaInterface |
|
1463
|
|
|
{ |
|
1464
|
1 |
|
$this->thumbnailTime = $thumbnailTime; |
|
1465
|
|
|
|
|
1466
|
1 |
|
return $this; |
|
1467
|
|
|
} |
|
1468
|
|
|
|
|
1469
|
|
|
/** |
|
1470
|
|
|
* @return string |
|
1471
|
|
|
*/ |
|
1472
|
2 |
|
public function getCategory() : ?string |
|
1473
|
|
|
{ |
|
1474
|
2 |
|
return $this->category; |
|
1475
|
|
|
} |
|
1476
|
|
|
|
|
1477
|
|
|
/** |
|
1478
|
|
|
* @param string $category |
|
1479
|
|
|
* @return MediaInterface |
|
1480
|
|
|
*/ |
|
1481
|
2 |
|
public function setCategory(?string $category) : MediaInterface |
|
1482
|
|
|
{ |
|
1483
|
2 |
|
$this->category = $category; |
|
1484
|
|
|
|
|
1485
|
2 |
|
return $this; |
|
1486
|
|
|
} |
|
1487
|
|
|
|
|
1488
|
|
|
/** |
|
1489
|
|
|
* @return string |
|
1490
|
|
|
*/ |
|
1491
|
2 |
|
public function getCategoryLabel() : ?string |
|
1492
|
|
|
{ |
|
1493
|
2 |
|
return $this->categoryLabel; |
|
1494
|
|
|
} |
|
1495
|
|
|
|
|
1496
|
|
|
/** |
|
1497
|
|
|
* @param string $categoryLabel |
|
1498
|
|
|
* @return MediaInterface |
|
1499
|
|
|
*/ |
|
1500
|
2 |
|
public function setCategoryLabel(?string $categoryLabel) : MediaInterface |
|
1501
|
|
|
{ |
|
1502
|
2 |
|
$this->categoryLabel = $categoryLabel; |
|
1503
|
|
|
|
|
1504
|
2 |
|
return $this; |
|
1505
|
|
|
} |
|
1506
|
|
|
|
|
1507
|
|
|
/** |
|
1508
|
|
|
* @return string |
|
1509
|
|
|
*/ |
|
1510
|
2 |
|
public function getCategoryScheme() : ?string |
|
1511
|
|
|
{ |
|
1512
|
2 |
|
return $this->categoryScheme; |
|
1513
|
|
|
} |
|
1514
|
|
|
|
|
1515
|
|
|
/** |
|
1516
|
|
|
* @param string $categoryScheme |
|
1517
|
|
|
* @return MediaInterface |
|
1518
|
|
|
*/ |
|
1519
|
2 |
|
public function setCategoryScheme(?string $categoryScheme) : MediaInterface |
|
1520
|
|
|
{ |
|
1521
|
2 |
|
$this->categoryScheme = $categoryScheme; |
|
1522
|
|
|
|
|
1523
|
2 |
|
return $this; |
|
1524
|
|
|
} |
|
1525
|
|
|
|
|
1526
|
|
|
/** |
|
1527
|
|
|
* @return string |
|
1528
|
|
|
*/ |
|
1529
|
2 |
|
public function getHash() : ?string |
|
1530
|
|
|
{ |
|
1531
|
2 |
|
return $this->hash; |
|
1532
|
|
|
} |
|
1533
|
|
|
|
|
1534
|
|
|
/** |
|
1535
|
|
|
* @param string $hash |
|
1536
|
|
|
* @return MediaInterface |
|
1537
|
|
|
*/ |
|
1538
|
2 |
|
public function setHash(?string $hash) : MediaInterface |
|
1539
|
|
|
{ |
|
1540
|
2 |
|
$this->hash = $hash; |
|
1541
|
|
|
|
|
1542
|
2 |
|
return $this; |
|
1543
|
|
|
} |
|
1544
|
|
|
|
|
1545
|
|
|
/** |
|
1546
|
|
|
* @return int |
|
1547
|
|
|
*/ |
|
1548
|
2 |
|
public function getHashAlgo() : ?int |
|
1549
|
|
|
{ |
|
1550
|
2 |
|
return $this->hashAlgo; |
|
1551
|
|
|
} |
|
1552
|
|
|
|
|
1553
|
|
|
/** |
|
1554
|
|
|
* @param int $hashAlgo |
|
1555
|
|
|
* @return MediaInterface |
|
1556
|
|
|
*/ |
|
1557
|
2 |
|
public function setHashAlgo(?int $hashAlgo) : MediaInterface |
|
1558
|
|
|
{ |
|
1559
|
2 |
|
$this->hashAlgo = $hashAlgo; |
|
|
|
|
|
|
1560
|
|
|
|
|
1561
|
2 |
|
return $this; |
|
1562
|
|
|
} |
|
1563
|
|
|
|
|
1564
|
|
|
/** |
|
1565
|
|
|
* @return string |
|
1566
|
|
|
*/ |
|
1567
|
2 |
|
public function getPlayerUrl() : ?string |
|
1568
|
|
|
{ |
|
1569
|
2 |
|
return $this->playerUrl; |
|
1570
|
|
|
} |
|
1571
|
|
|
|
|
1572
|
|
|
/** |
|
1573
|
|
|
* @param string $playerUrl |
|
1574
|
|
|
* @return MediaInterface |
|
1575
|
|
|
*/ |
|
1576
|
2 |
|
public function setPlayerUrl(?string $playerUrl) : MediaInterface |
|
1577
|
|
|
{ |
|
1578
|
2 |
|
$this->playerUrl = $playerUrl; |
|
1579
|
|
|
|
|
1580
|
2 |
|
return $this; |
|
1581
|
|
|
} |
|
1582
|
|
|
|
|
1583
|
|
|
/** |
|
1584
|
|
|
* @return int |
|
1585
|
|
|
*/ |
|
1586
|
2 |
|
public function getPlayerWidth() : ?int |
|
1587
|
|
|
{ |
|
1588
|
2 |
|
return $this->playerWidth; |
|
1589
|
|
|
} |
|
1590
|
|
|
|
|
1591
|
|
|
/** |
|
1592
|
|
|
* @param int $playerWidth |
|
1593
|
|
|
* @return MediaInterface |
|
1594
|
|
|
*/ |
|
1595
|
2 |
|
public function setPlayerWidth(?int $playerWidth) : MediaInterface |
|
1596
|
|
|
{ |
|
1597
|
2 |
|
$this->playerWidth = $playerWidth; |
|
1598
|
|
|
|
|
1599
|
2 |
|
return $this; |
|
1600
|
|
|
} |
|
1601
|
|
|
|
|
1602
|
|
|
/** |
|
1603
|
|
|
* @return int |
|
1604
|
|
|
*/ |
|
1605
|
2 |
|
public function getPlayerHeight() : ?int |
|
1606
|
|
|
{ |
|
1607
|
2 |
|
return $this->playerHeight; |
|
1608
|
|
|
} |
|
1609
|
|
|
|
|
1610
|
|
|
/** |
|
1611
|
|
|
* @param int $playerHeight |
|
1612
|
|
|
* @return MediaInterface |
|
1613
|
|
|
*/ |
|
1614
|
2 |
|
public function setPlayerHeight(?int $playerHeight) : MediaInterface |
|
1615
|
|
|
{ |
|
1616
|
2 |
|
$this->playerHeight = $playerHeight; |
|
1617
|
|
|
|
|
1618
|
2 |
|
return $this; |
|
1619
|
|
|
} |
|
1620
|
|
|
|
|
1621
|
|
|
/** |
|
1622
|
|
|
* @return string |
|
1623
|
|
|
*/ |
|
1624
|
2 |
|
public function getCopyright() : ?string |
|
1625
|
|
|
{ |
|
1626
|
2 |
|
return $this->copyright; |
|
1627
|
|
|
} |
|
1628
|
|
|
|
|
1629
|
|
|
/** |
|
1630
|
|
|
* @param string $copyright |
|
1631
|
|
|
* @return MediaInterface |
|
1632
|
|
|
*/ |
|
1633
|
2 |
|
public function setCopyright(?string $copyright) : MediaInterface |
|
1634
|
|
|
{ |
|
1635
|
2 |
|
$this->copyright = $copyright; |
|
1636
|
|
|
|
|
1637
|
2 |
|
return $this; |
|
1638
|
|
|
} |
|
1639
|
|
|
|
|
1640
|
|
|
/** |
|
1641
|
|
|
* @return string |
|
1642
|
|
|
*/ |
|
1643
|
2 |
|
public function getCopyrightUrl() : ?string |
|
1644
|
|
|
{ |
|
1645
|
2 |
|
return $this->copyrightUrl; |
|
1646
|
|
|
} |
|
1647
|
|
|
|
|
1648
|
|
|
/** |
|
1649
|
|
|
* @param string $copyrightUrl |
|
1650
|
|
|
* @return MediaInterface |
|
1651
|
|
|
*/ |
|
1652
|
2 |
|
public function setCopyrightUrl(?string $copyrightUrl) : MediaInterface |
|
1653
|
|
|
{ |
|
1654
|
2 |
|
$this->copyrightUrl = $copyrightUrl; |
|
1655
|
|
|
|
|
1656
|
2 |
|
return $this; |
|
1657
|
|
|
} |
|
1658
|
|
|
|
|
1659
|
|
|
/** |
|
1660
|
|
|
* @return string |
|
1661
|
|
|
*/ |
|
1662
|
2 |
|
public function getRestriction() : ?string |
|
1663
|
|
|
{ |
|
1664
|
2 |
|
return $this->restriction; |
|
1665
|
|
|
} |
|
1666
|
|
|
|
|
1667
|
|
|
/** |
|
1668
|
|
|
* @param string $restriction |
|
1669
|
|
|
* @return MediaInterface |
|
1670
|
|
|
*/ |
|
1671
|
2 |
|
public function setRestriction(?string $restriction) : MediaInterface |
|
1672
|
|
|
{ |
|
1673
|
2 |
|
$this->restriction = $restriction; |
|
1674
|
|
|
|
|
1675
|
2 |
|
return $this; |
|
1676
|
|
|
} |
|
1677
|
|
|
|
|
1678
|
|
|
|
|
1679
|
|
|
/** |
|
1680
|
|
|
* @return int |
|
1681
|
|
|
*/ |
|
1682
|
2 |
|
public function getRestrictionType() : ?int |
|
1683
|
|
|
{ |
|
1684
|
2 |
|
return $this->restrictionType; |
|
1685
|
|
|
} |
|
1686
|
|
|
|
|
1687
|
|
|
/** |
|
1688
|
|
|
* @param int $restrictionType |
|
1689
|
|
|
* @return MediaInterface |
|
1690
|
|
|
*/ |
|
1691
|
2 |
|
public function setRestrictionType(?int $restrictionType) : MediaInterface |
|
1692
|
|
|
{ |
|
1693
|
2 |
|
$this->restrictionType = $restrictionType; |
|
1694
|
|
|
|
|
1695
|
2 |
|
return $this; |
|
1696
|
|
|
} |
|
1697
|
|
|
|
|
1698
|
|
|
/** |
|
1699
|
|
|
* @return int |
|
1700
|
|
|
*/ |
|
1701
|
2 |
|
public function getRestrictionRelationship() : ?int |
|
1702
|
|
|
{ |
|
1703
|
2 |
|
return $this->restrictionRelationship; |
|
1704
|
|
|
} |
|
1705
|
|
|
|
|
1706
|
|
|
/** |
|
1707
|
|
|
* @param int $restrictionRelationship |
|
1708
|
|
|
* @return MediaInterface |
|
1709
|
|
|
*/ |
|
1710
|
2 |
|
public function setRestrictionRelationship(?int $restrictionRelationship) : MediaInterface |
|
1711
|
|
|
{ |
|
1712
|
2 |
|
$this->restrictionRelationship = $restrictionRelationship; |
|
1713
|
|
|
|
|
1714
|
2 |
|
return $this; |
|
1715
|
|
|
} |
|
1716
|
|
|
|
|
1717
|
|
|
/** |
|
1718
|
|
|
* @return float |
|
1719
|
|
|
*/ |
|
1720
|
2 |
|
public function getStarRatingAverage() : ?float |
|
1721
|
|
|
{ |
|
1722
|
2 |
|
return $this->starRatingAverage; |
|
1723
|
|
|
} |
|
1724
|
|
|
|
|
1725
|
|
|
/** |
|
1726
|
|
|
* @param float $starRatingAverage |
|
1727
|
|
|
* @return MediaInterface |
|
1728
|
|
|
*/ |
|
1729
|
3 |
|
public function setStarRatingAverage(?float $starRatingAverage) : MediaInterface |
|
1730
|
|
|
{ |
|
1731
|
3 |
|
$this->starRatingAverage = $starRatingAverage; |
|
1732
|
|
|
|
|
1733
|
3 |
|
return $this; |
|
1734
|
|
|
} |
|
1735
|
|
|
|
|
1736
|
|
|
/** |
|
1737
|
|
|
* @return int |
|
1738
|
|
|
*/ |
|
1739
|
2 |
|
public function getStarRatingCount() : ?int |
|
1740
|
|
|
{ |
|
1741
|
2 |
|
return $this->starRatingCount; |
|
1742
|
|
|
} |
|
1743
|
|
|
|
|
1744
|
|
|
/** |
|
1745
|
|
|
* @param int $starRatingCount |
|
1746
|
|
|
* @return MediaInterface |
|
1747
|
|
|
*/ |
|
1748
|
3 |
|
public function setStarRatingCount(?int $starRatingCount) : MediaInterface |
|
1749
|
|
|
{ |
|
1750
|
3 |
|
$this->starRatingCount = $starRatingCount; |
|
1751
|
|
|
|
|
1752
|
3 |
|
return $this; |
|
1753
|
|
|
} |
|
1754
|
|
|
|
|
1755
|
|
|
/** |
|
1756
|
|
|
* @return int |
|
1757
|
|
|
*/ |
|
1758
|
2 |
|
public function getStarRatingMin() : ?int |
|
1759
|
|
|
{ |
|
1760
|
2 |
|
return $this->starRatingMin; |
|
1761
|
|
|
} |
|
1762
|
|
|
|
|
1763
|
|
|
/** |
|
1764
|
|
|
* @param int $starRatingMin |
|
1765
|
|
|
* @return MediaInterface |
|
1766
|
|
|
*/ |
|
1767
|
3 |
|
public function setStarRatingMin(?int $starRatingMin) : MediaInterface |
|
1768
|
|
|
{ |
|
1769
|
3 |
|
$this->starRatingMin = $starRatingMin; |
|
1770
|
|
|
|
|
1771
|
3 |
|
return $this; |
|
1772
|
|
|
} |
|
1773
|
|
|
|
|
1774
|
|
|
/** |
|
1775
|
|
|
* @return int |
|
1776
|
|
|
*/ |
|
1777
|
2 |
|
public function getStarRatingMax() : ?int |
|
1778
|
|
|
{ |
|
1779
|
2 |
|
return $this->starRatingMax; |
|
1780
|
|
|
} |
|
1781
|
|
|
|
|
1782
|
|
|
/** |
|
1783
|
|
|
* @param int $starRatingMax |
|
1784
|
|
|
* @return MediaInterface |
|
1785
|
|
|
*/ |
|
1786
|
3 |
|
public function setStarRatingMax(?int $starRatingMax) : MediaInterface |
|
1787
|
|
|
{ |
|
1788
|
3 |
|
$this->starRatingMax = $starRatingMax; |
|
1789
|
|
|
|
|
1790
|
3 |
|
return $this; |
|
1791
|
|
|
} |
|
1792
|
|
|
|
|
1793
|
|
|
/** |
|
1794
|
|
|
* @return int |
|
1795
|
|
|
*/ |
|
1796
|
2 |
|
public function getNbViews() : ?int |
|
1797
|
|
|
{ |
|
1798
|
2 |
|
return $this->nbViews; |
|
1799
|
|
|
} |
|
1800
|
|
|
|
|
1801
|
|
|
/** |
|
1802
|
|
|
* @param int $nbViews |
|
1803
|
|
|
* @return MediaInterface |
|
1804
|
|
|
*/ |
|
1805
|
3 |
|
public function setNbViews(?int $nbViews) : MediaInterface |
|
1806
|
|
|
{ |
|
1807
|
3 |
|
$this->nbViews = $nbViews; |
|
1808
|
|
|
|
|
1809
|
3 |
|
return $this; |
|
1810
|
|
|
} |
|
1811
|
|
|
|
|
1812
|
|
|
/** |
|
1813
|
|
|
* @return int |
|
1814
|
|
|
*/ |
|
1815
|
2 |
|
public function getNbFavorites() : ?int |
|
1816
|
|
|
{ |
|
1817
|
2 |
|
return $this->nbFavorites; |
|
1818
|
|
|
} |
|
1819
|
|
|
|
|
1820
|
|
|
/** |
|
1821
|
|
|
* @param int $nbFavorites |
|
1822
|
|
|
* @return MediaInterface |
|
1823
|
|
|
*/ |
|
1824
|
3 |
|
public function setNbFavorites(?int $nbFavorites) : MediaInterface |
|
1825
|
|
|
{ |
|
1826
|
3 |
|
$this->nbFavorites = $nbFavorites; |
|
1827
|
|
|
|
|
1828
|
3 |
|
return $this; |
|
1829
|
|
|
} |
|
1830
|
|
|
|
|
1831
|
|
|
/** |
|
1832
|
|
|
* @return array |
|
1833
|
|
|
*/ |
|
1834
|
2 |
|
public function getTags() : array |
|
1835
|
|
|
{ |
|
1836
|
2 |
|
return $this->tags; |
|
1837
|
|
|
} |
|
1838
|
|
|
|
|
1839
|
|
|
/** |
|
1840
|
|
|
* @param array $tags |
|
1841
|
|
|
* @return MediaInterface |
|
1842
|
|
|
*/ |
|
1843
|
3 |
|
public function setTags(array $tags) : MediaInterface |
|
1844
|
|
|
{ |
|
1845
|
3 |
|
$this->tags = $tags; |
|
1846
|
|
|
|
|
1847
|
3 |
|
return $this; |
|
1848
|
|
|
} |
|
1849
|
|
|
|
|
1850
|
|
|
/** |
|
1851
|
|
|
* @return array |
|
1852
|
|
|
*/ |
|
1853
|
2 |
|
public function getComments() : array |
|
1854
|
|
|
{ |
|
1855
|
2 |
|
return $this->comments; |
|
1856
|
|
|
} |
|
1857
|
|
|
|
|
1858
|
|
|
/** |
|
1859
|
|
|
* @param array $comments |
|
1860
|
|
|
* @return MediaInterface |
|
1861
|
|
|
*/ |
|
1862
|
2 |
|
public function setComments(array $comments) : MediaInterface |
|
1863
|
|
|
{ |
|
1864
|
2 |
|
$this->comments = $comments; |
|
1865
|
|
|
|
|
1866
|
2 |
|
return $this; |
|
1867
|
|
|
} |
|
1868
|
|
|
|
|
1869
|
|
|
|
|
1870
|
|
|
/** |
|
1871
|
|
|
* @return string |
|
1872
|
|
|
*/ |
|
1873
|
2 |
|
public function getEmbedUrl() : ?string |
|
1874
|
|
|
{ |
|
1875
|
2 |
|
return $this->embedUrl; |
|
1876
|
|
|
} |
|
1877
|
|
|
|
|
1878
|
|
|
/** |
|
1879
|
|
|
* @param string $embedUrl |
|
1880
|
|
|
* @return MediaInterface |
|
1881
|
|
|
*/ |
|
1882
|
2 |
|
public function setEmbedUrl(?string $embedUrl) : MediaInterface |
|
1883
|
|
|
{ |
|
1884
|
2 |
|
$this->embedUrl = $embedUrl; |
|
1885
|
|
|
|
|
1886
|
2 |
|
return $this; |
|
1887
|
|
|
} |
|
1888
|
|
|
|
|
1889
|
|
|
/** |
|
1890
|
|
|
* @return int |
|
1891
|
|
|
*/ |
|
1892
|
2 |
|
public function getEmbedWidth() : ?int |
|
1893
|
|
|
{ |
|
1894
|
2 |
|
return $this->embedWidth; |
|
1895
|
|
|
} |
|
1896
|
|
|
|
|
1897
|
|
|
/** |
|
1898
|
|
|
* @param int $embedWidth |
|
1899
|
|
|
* @return MediaInterface |
|
1900
|
|
|
*/ |
|
1901
|
2 |
|
public function setEmbedWidth(?int $embedWidth) : MediaInterface |
|
1902
|
|
|
{ |
|
1903
|
2 |
|
$this->embedWidth = $embedWidth; |
|
1904
|
|
|
|
|
1905
|
2 |
|
return $this; |
|
1906
|
|
|
} |
|
1907
|
|
|
|
|
1908
|
|
|
/** |
|
1909
|
|
|
* @return int |
|
1910
|
|
|
*/ |
|
1911
|
2 |
|
public function getEmbedHeight() : ?int |
|
1912
|
|
|
{ |
|
1913
|
2 |
|
return $this->embedHeight; |
|
1914
|
|
|
} |
|
1915
|
|
|
|
|
1916
|
|
|
/** |
|
1917
|
|
|
* @param int $embedHeight |
|
1918
|
|
|
* @return MediaInterface |
|
1919
|
|
|
*/ |
|
1920
|
2 |
|
public function setEmbedHeight(?int $embedHeight) : MediaInterface |
|
1921
|
|
|
{ |
|
1922
|
2 |
|
$this->embedHeight = $embedHeight; |
|
1923
|
|
|
|
|
1924
|
2 |
|
return $this; |
|
1925
|
|
|
} |
|
1926
|
|
|
|
|
1927
|
|
|
/** |
|
1928
|
|
|
* @return array |
|
1929
|
|
|
*/ |
|
1930
|
2 |
|
public function getEmbedParams() : array |
|
1931
|
|
|
{ |
|
1932
|
2 |
|
return $this->embedParams; |
|
1933
|
|
|
} |
|
1934
|
|
|
|
|
1935
|
|
|
/** |
|
1936
|
|
|
* @param array $embedParams |
|
1937
|
|
|
* @return MediaInterface |
|
1938
|
|
|
*/ |
|
1939
|
2 |
|
public function setEmbedParams(array $embedParams) : MediaInterface |
|
1940
|
|
|
{ |
|
1941
|
2 |
|
$this->embedParams = $embedParams; |
|
1942
|
|
|
|
|
1943
|
2 |
|
return $this; |
|
1944
|
|
|
} |
|
1945
|
|
|
|
|
1946
|
|
|
/** |
|
1947
|
|
|
* @return array |
|
1948
|
|
|
*/ |
|
1949
|
2 |
|
public function getResponses() : array |
|
1950
|
|
|
{ |
|
1951
|
2 |
|
return $this->responses; |
|
1952
|
|
|
} |
|
1953
|
|
|
|
|
1954
|
|
|
/** |
|
1955
|
|
|
* @param array $responses |
|
1956
|
|
|
* @return MediaInterface |
|
1957
|
|
|
*/ |
|
1958
|
2 |
|
public function setResponses(array $responses) : MediaInterface |
|
1959
|
|
|
{ |
|
1960
|
2 |
|
$this->responses = $responses; |
|
1961
|
|
|
|
|
1962
|
2 |
|
return $this; |
|
1963
|
|
|
} |
|
1964
|
|
|
|
|
1965
|
|
|
/** |
|
1966
|
|
|
* @return array |
|
1967
|
|
|
*/ |
|
1968
|
2 |
|
public function getBacklinks() : array |
|
1969
|
|
|
{ |
|
1970
|
2 |
|
return $this->backlinks; |
|
1971
|
|
|
} |
|
1972
|
|
|
|
|
1973
|
|
|
/** |
|
1974
|
|
|
* @param array $backlinks |
|
1975
|
|
|
* @return MediaInterface |
|
1976
|
|
|
*/ |
|
1977
|
2 |
|
public function setBacklinks(array $backlinks) : MediaInterface |
|
1978
|
|
|
{ |
|
1979
|
2 |
|
$this->backlinks = $backlinks; |
|
1980
|
|
|
|
|
1981
|
2 |
|
return $this; |
|
1982
|
|
|
} |
|
1983
|
|
|
|
|
1984
|
|
|
/** |
|
1985
|
|
|
* @return int |
|
1986
|
|
|
*/ |
|
1987
|
2 |
|
public function getStatus() : ?int |
|
1988
|
|
|
{ |
|
1989
|
2 |
|
return $this->status; |
|
1990
|
|
|
} |
|
1991
|
|
|
|
|
1992
|
|
|
/** |
|
1993
|
|
|
* @param int $status |
|
1994
|
|
|
* @return MediaInterface |
|
1995
|
|
|
*/ |
|
1996
|
2 |
|
public function setStatus(?int $status) : MediaInterface |
|
1997
|
|
|
{ |
|
1998
|
2 |
|
$this->status = $status; |
|
1999
|
|
|
|
|
2000
|
2 |
|
return $this; |
|
2001
|
|
|
} |
|
2002
|
|
|
|
|
2003
|
|
|
/** |
|
2004
|
|
|
* @return string |
|
2005
|
|
|
*/ |
|
2006
|
2 |
|
public function getStatusReason() : ?string |
|
2007
|
|
|
{ |
|
2008
|
2 |
|
return $this->statusReason; |
|
2009
|
|
|
} |
|
2010
|
|
|
|
|
2011
|
|
|
/** |
|
2012
|
|
|
* @param string $statusReason |
|
2013
|
|
|
* @return MediaInterface |
|
2014
|
|
|
*/ |
|
2015
|
2 |
|
public function setStatusReason(?string $statusReason) : MediaInterface |
|
2016
|
|
|
{ |
|
2017
|
2 |
|
$this->statusReason = $statusReason; |
|
2018
|
|
|
|
|
2019
|
2 |
|
return $this; |
|
2020
|
|
|
} |
|
2021
|
|
|
|
|
2022
|
|
|
/** |
|
2023
|
|
|
* @return string |
|
2024
|
|
|
*/ |
|
2025
|
1 |
|
public function getLicense() : ?string |
|
2026
|
|
|
{ |
|
2027
|
1 |
|
return $this->license; |
|
2028
|
|
|
} |
|
2029
|
|
|
|
|
2030
|
|
|
/** |
|
2031
|
|
|
* @param string $license |
|
2032
|
|
|
* @return MediaInterface |
|
2033
|
|
|
*/ |
|
2034
|
1 |
|
public function setLicense(?string $license) : MediaInterface |
|
2035
|
|
|
{ |
|
2036
|
1 |
|
$this->license = $license; |
|
2037
|
|
|
|
|
2038
|
1 |
|
return $this; |
|
2039
|
|
|
} |
|
2040
|
|
|
|
|
2041
|
|
|
/** |
|
2042
|
|
|
* @return string |
|
2043
|
|
|
*/ |
|
2044
|
1 |
|
public function getLicenseUrl() : ?string |
|
2045
|
|
|
{ |
|
2046
|
1 |
|
return $this->licenseUrl; |
|
2047
|
|
|
} |
|
2048
|
|
|
|
|
2049
|
|
|
/** |
|
2050
|
|
|
* @param string $licenseUrl |
|
2051
|
|
|
* @return MediaInterface |
|
2052
|
|
|
*/ |
|
2053
|
1 |
|
public function setLicenseUrl(?string $licenseUrl) : MediaInterface |
|
2054
|
|
|
{ |
|
2055
|
1 |
|
$this->licenseUrl = $licenseUrl; |
|
2056
|
|
|
|
|
2057
|
1 |
|
return $this; |
|
2058
|
|
|
} |
|
2059
|
|
|
|
|
2060
|
|
|
/** |
|
2061
|
|
|
* @return string |
|
2062
|
|
|
*/ |
|
2063
|
1 |
|
public function getLicenseType() : ?string |
|
2064
|
|
|
{ |
|
2065
|
1 |
|
return $this->licenseType; |
|
2066
|
|
|
} |
|
2067
|
|
|
|
|
2068
|
|
|
/** |
|
2069
|
|
|
* @param string $licenseType |
|
2070
|
|
|
* @return MediaInterface |
|
2071
|
|
|
*/ |
|
2072
|
1 |
|
public function setLicenseType(?string $licenseType) : MediaInterface |
|
2073
|
|
|
{ |
|
2074
|
1 |
|
$this->licenseType = $licenseType; |
|
2075
|
|
|
|
|
2076
|
1 |
|
return $this; |
|
2077
|
|
|
} |
|
2078
|
|
|
|
|
2079
|
|
|
/** |
|
2080
|
|
|
* @return string |
|
2081
|
|
|
*/ |
|
2082
|
1 |
|
public function getPeerLink() : ?string |
|
2083
|
|
|
{ |
|
2084
|
1 |
|
return $this->peerLink; |
|
2085
|
|
|
} |
|
2086
|
|
|
|
|
2087
|
|
|
/** |
|
2088
|
|
|
* @param string $peerLink |
|
2089
|
|
|
* @return MediaInterface |
|
2090
|
|
|
*/ |
|
2091
|
1 |
|
public function setPeerLink(?string $peerLink) : MediaInterface |
|
2092
|
|
|
{ |
|
2093
|
1 |
|
$this->peerLink = $peerLink; |
|
2094
|
|
|
|
|
2095
|
1 |
|
return $this; |
|
2096
|
|
|
} |
|
2097
|
|
|
|
|
2098
|
|
|
/** |
|
2099
|
|
|
* @return string |
|
2100
|
|
|
*/ |
|
2101
|
1 |
|
public function getPeerLinkType() : ?string |
|
2102
|
|
|
{ |
|
2103
|
1 |
|
return $this->peerLinkType; |
|
2104
|
|
|
} |
|
2105
|
|
|
|
|
2106
|
|
|
/** |
|
2107
|
|
|
* @param string $peerLinkType |
|
2108
|
|
|
* @return MediaInterface |
|
2109
|
|
|
*/ |
|
2110
|
1 |
|
public function setPeerLinkType(?string $peerLinkType) : MediaInterface |
|
2111
|
|
|
{ |
|
2112
|
1 |
|
$this->peerLinkType = $peerLinkType; |
|
2113
|
|
|
|
|
2114
|
1 |
|
return $this; |
|
2115
|
|
|
} |
|
2116
|
|
|
|
|
2117
|
|
|
/** |
|
2118
|
|
|
* @return array |
|
2119
|
|
|
*/ |
|
2120
|
2 |
|
public function getCredits() : array |
|
2121
|
|
|
{ |
|
2122
|
2 |
|
return $this->credits; |
|
2123
|
|
|
} |
|
2124
|
|
|
|
|
2125
|
|
|
/** |
|
2126
|
|
|
* @param array $credits |
|
2127
|
|
|
* @return MediaInterface |
|
2128
|
|
|
*/ |
|
2129
|
2 |
|
public function setCredits(array $credits) : MediaInterface |
|
2130
|
|
|
{ |
|
2131
|
2 |
|
$this->credits = $credits; |
|
2132
|
|
|
|
|
2133
|
2 |
|
return $this; |
|
2134
|
|
|
} |
|
2135
|
|
|
|
|
2136
|
|
|
/** |
|
2137
|
|
|
* @return array |
|
2138
|
|
|
*/ |
|
2139
|
2 |
|
public function getTexts() : array |
|
2140
|
|
|
{ |
|
2141
|
2 |
|
return $this->texts; |
|
2142
|
|
|
} |
|
2143
|
|
|
|
|
2144
|
|
|
/** |
|
2145
|
|
|
* @param array $texts |
|
2146
|
|
|
* @return MediaInterface |
|
2147
|
|
|
*/ |
|
2148
|
2 |
|
public function setTexts(array $texts) : MediaInterface |
|
2149
|
|
|
{ |
|
2150
|
2 |
|
$this->texts = $texts; |
|
2151
|
|
|
|
|
2152
|
2 |
|
return $this; |
|
2153
|
|
|
} |
|
2154
|
|
|
|
|
2155
|
|
|
/** |
|
2156
|
|
|
* @return array |
|
2157
|
|
|
*/ |
|
2158
|
2 |
|
public function getPrices() : array |
|
2159
|
|
|
{ |
|
2160
|
2 |
|
return $this->prices; |
|
2161
|
|
|
} |
|
2162
|
|
|
|
|
2163
|
|
|
/** |
|
2164
|
|
|
* @param array $prices |
|
2165
|
|
|
* @return MediaInterface |
|
2166
|
|
|
*/ |
|
2167
|
2 |
|
public function setPrices(array $prices) : MediaInterface |
|
2168
|
|
|
{ |
|
2169
|
2 |
|
$this->prices = $prices; |
|
2170
|
|
|
|
|
2171
|
2 |
|
return $this; |
|
2172
|
|
|
} |
|
2173
|
|
|
|
|
2174
|
|
|
/** |
|
2175
|
|
|
* @return array |
|
2176
|
|
|
*/ |
|
2177
|
1 |
|
public function getSubTitles() : array |
|
2178
|
|
|
{ |
|
2179
|
1 |
|
return $this->subTitles; |
|
2180
|
|
|
} |
|
2181
|
|
|
|
|
2182
|
|
|
/** |
|
2183
|
|
|
* @param array $subTitles |
|
2184
|
|
|
* @return MediaInterface |
|
2185
|
|
|
*/ |
|
2186
|
1 |
|
public function setSubTitles(array $subTitles) : MediaInterface |
|
2187
|
|
|
{ |
|
2188
|
1 |
|
$this->subTitles = $subTitles; |
|
2189
|
|
|
|
|
2190
|
1 |
|
return $this; |
|
2191
|
|
|
} |
|
2192
|
|
|
|
|
2193
|
|
|
/** |
|
2194
|
|
|
* @return array |
|
2195
|
|
|
*/ |
|
2196
|
1 |
|
public function getScenes() : array |
|
2197
|
|
|
{ |
|
2198
|
1 |
|
return $this->scenes; |
|
2199
|
|
|
} |
|
2200
|
|
|
|
|
2201
|
|
|
/** |
|
2202
|
|
|
* @param array $scenes |
|
2203
|
|
|
* @return MediaInterface |
|
2204
|
|
|
*/ |
|
2205
|
1 |
|
public function setScenes(array $scenes) : MediaInterface |
|
2206
|
|
|
{ |
|
2207
|
1 |
|
$this->scenes = $scenes; |
|
2208
|
|
|
|
|
2209
|
1 |
|
return $this; |
|
2210
|
|
|
} |
|
2211
|
|
|
|
|
2212
|
|
|
/** |
|
2213
|
|
|
* @return bool |
|
2214
|
|
|
*/ |
|
2215
|
2 |
|
public function isDefault() : bool |
|
2216
|
|
|
{ |
|
2217
|
2 |
|
return $this->default; |
|
2218
|
|
|
} |
|
2219
|
|
|
|
|
2220
|
|
|
/** |
|
2221
|
|
|
* @param bool $default |
|
2222
|
|
|
* @return MediaInterface |
|
2223
|
|
|
*/ |
|
2224
|
1 |
|
public function setDefault(bool $default) : MediaInterface |
|
2225
|
|
|
{ |
|
2226
|
1 |
|
$this->default = $default; |
|
2227
|
|
|
|
|
2228
|
1 |
|
return $this; |
|
2229
|
|
|
} |
|
2230
|
|
|
} |
|
2231
|
|
|
|
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.