Completed
Pull Request — master (#257)
by
unknown
01:43
created

MediaDescriptionType::fromXML()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 4.0466

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 6
cts 7
cp 0.8571
rs 9.9
c 0
b 0
f 0
cc 4
nc 3
nop 1
crap 4.0466
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 string
717
     */
718
    protected $contentType;
719
720
    /**
721
     * @var int
722
     */
723
    protected $contentExpression;
724
725
    /**
726
     * @var int
727
     */
728
    protected $contentMedium;
729
730
    /**
731
     * @var string
732
     */
733
    protected $rights;
734
735
    /**
736
     * @var string
737
     */
738
    protected $rating;
739
740
741
    /**
742
     * @var string
743
     */
744
    protected $ratingScheme;
745
746
    /**
747
     * @var int
748
     */
749
    protected $titleType;
750
751
    /**
752
     * @var int
753
     */
754
    protected $descriptionType;
755
756
    /**
757
     * @var array
758
     */
759
    protected $keywords = array();
760
761
    /**
762
     * @var int
763
     */
764
    protected $thumbnailWidth;
765
766
    /**
767
     * @var int
768
     */
769
    protected $thumbnailHeight;
770
771
    /**
772
     * @var DateTime
773
     */
774
    protected $thumbnailTime;
775
776
    /**
777
     * @var string
778
     */
779
    protected $category;
780
781
    /**
782
     * @var string
783
     */
784
    protected $categoryLabel;
785
786
    /**
787
     * @var string
788
     */
789
    protected $categoryScheme;
790
791
    /**
792
     * @var string
793
     */
794
    protected $hash;
795
796
    /**
797
     * @var string
798
     */
799
    protected $hashAlgo;
800
801
    /**
802
     * @var string
803
     */
804
    protected $playerUrl;
805
806
    /**
807
     * @var int
808
     */
809
    protected $playerWidth;
810
811
    /**
812
     * @var int
813
     */
814
    protected $playerHeight;
815
816
    /**
817
     * @var string
818
     */
819
    protected $copyright;
820
821
    /**
822
     * @var string
823
     */
824
    protected $copyrightUrl;
825
826
    /**
827
     * @var string
828
     */
829
    protected $restriction;
830
831
    /**
832
     * @var int
833
     */
834
    protected $restrictionType;
835
836
    /**
837
     * @var int
838
     */
839
    protected $restrictionRelationship;
840
841
    /**
842
     * @var float
843
     */
844
    protected $starRatingAverage;
845
846
    /**
847
     * @var int
848
     */
849
    protected $starRatingCount;
850
851
    /**
852
     * @var int
853
     */
854
    protected $starRatingMin;
855
856
    /**
857
     * @var int
858
     */
859
    protected $starRatingMax;
860
861
    /**
862
     * @var int
863
     */
864
    protected $nbViews;
865
866
    /**
867
     * @var int
868
     */
869
    protected $nbFavorites;
870
871
    /**
872
     * @var array
873
     */
874
    protected $tags = array();
875
876
    /**
877
     * @var array
878
     */
879
    protected $comments = array();
880
881
    /**
882
     * @var string
883
     */
884
    protected $embedUrl;
885
886
    /**
887
     * @var int
888
     */
889
    protected $embedWidth;
890
891
    /**
892
     * @var int
893
     */
894
    protected $embedHeight;
895
896
    /**
897
     * @var array
898
     */
899
    protected $embedParams = array();
900
901
    /**
902
     * @var array
903
     */
904
    protected $responses = array();
905
906
    /**
907
     * @var array
908
     */
909
    protected $backlinks = array();
910
911
    /**
912
     * @var int
913
     */
914
    protected $status;
915
916
    /**
917
     * @var string
918
     */
919
    protected $statusReason;
920
921
    /**
922
     * @var string
923
     */
924
    protected $license;
925
926
    /**
927
     * @var string
928
     */
929
    protected $licenseUrl;
930
931
    /**
932
     * @var string
933
     */
934
    protected $licenseType;
935
936
    /**
937
     * @var string
938
     */
939
    protected $peerLink;
940
941
    /**
942
     * @var string
943
     */
944
    protected $peerLinkType;
945
946
    /**
947
     * @var array
948
     */
949
    protected $credits = array();
950
951
    /**
952
     * @var array
953
     */
954
    protected $texts = array();
955
956
    /**
957
     * @var array
958
     */
959
    protected $prices = array();
960
961
    /**
962
     * @var array
963
     */
964
    protected $subTitles = array();
965
966
    /**
967
     * @var array
968
     */
969
    protected $scenes = array();
970
971
    /**
972
     * @var bool
973
     */
974
    protected $default = true;
975
976
    /**
977
     * @return string
978
     */
979
    public function getNodeName() : string
980
    {
981
        return $this->nodeName;
982
    }
983
984
    /**
985
     * @param string $nodeName
986
     * @return MediaInterface
987
     */
988 51
    public function setNodeName(string $nodeName) : MediaInterface
989
    {
990 51
        $this->nodeName = $nodeName;
991
992 51
        return $this;
993
    }
994
995
    /**
996
     * @return string
997
     */
998 5
    public function getType() : ? string
999
    {
1000 5
        return $this->type;
1001
    }
1002
1003
    /**
1004
     * @param  string $type
1005
     * @return MediaInterface
1006
     */
1007 7
    public function setType(?string $type) : MediaInterface
1008
    {
1009 7
        $this->type = $type;
1010
1011 7
        return $this;
1012
    }
1013
1014
    /**
1015
     * @return string
1016
     */
1017 10
    public function getUrl() : ? string
1018
    {
1019 10
        return $this->url;
1020
    }
1021
1022
    /**
1023
     * @param  string $url
1024
     * @return MediaInterface
1025
     */
1026 53
    public function setUrl(?string $url) : MediaInterface
1027
    {
1028 53
        $this->url = $url;
1029
1030 53
        return $this;
1031
    }
1032
1033
    /**
1034
     * @return string
1035
     */
1036 3
    public function getLength() : ? string
1037
    {
1038 3
        return $this->length;
1039
    }
1040
1041
    /**
1042
     * @param  string $length
1043
     * @return MediaInterface
1044
     */
1045 6
    public function setLength(?string $length) : MediaInterface
1046
    {
1047 6
        $this->length = $length;
1048
1049 6
        return $this;
1050
    }
1051
1052
    /**
1053
     * @return string
1054
     */
1055 4
    public function getTitle() : ? string
1056
    {
1057 4
        return $this->title;
1058
    }
1059
1060
    /**
1061
     * @param  string $title
1062
     * @return MediaInterface
1063
     */
1064 4
    public function setTitle(?string $title) : MediaInterface
1065
    {
1066 4
        $this->title = $title;
1067
1068 4
        return $this;
1069
    }
1070
1071
    /**
1072
     * @return string
1073
     */
1074 5
    public function getDescription() : ? string
1075
    {
1076 5
        return $this->description;
1077
    }
1078
1079
    /**
1080
     * @param  string $description
1081
     * @return MediaInterface
1082
     */
1083 5
    public function setDescription(?string $description) : MediaInterface
1084
    {
1085 5
        $this->description = $description;
1086
1087 5
        return $this;
1088
    }
1089
1090
    /**
1091
     * @return string
1092
     */
1093 3
    public function getThumbnail() : ? string
1094
    {
1095 3
        return $this->thumbnail;
1096
    }
1097
1098
    /**
1099
     * @param  string $thumbnail
1100
     * @return MediaInterface
1101
     */
1102 3
    public function setThumbnail(?string $thumbnail) : MediaInterface
1103
    {
1104 3
        $this->thumbnail = $thumbnail;
1105
1106 3
        return $this;
1107
    }
1108
1109
    /**
1110
     * @return int
1111
     */
1112 2
    public function getContentFileSize() : ?int
1113
    {
1114 2
        return $this->contentFileSize;
1115
    }
1116
1117
    /**
1118
     * @param  int $contentFileSize
1119
     * @return MediaInterface
1120
     */
1121 47
    public function setContentFileSize(?int $contentFileSize) : MediaInterface
1122
    {
1123 47
        $this->contentFileSize = $contentFileSize;
1124
1125 47
        return $this;
1126
    }
1127
1128
    /**
1129
     * @return int
1130
     */
1131 2
    public function getContentBitrate() : ?int
1132
    {
1133 2
        return $this->contentBitrate;
1134
    }
1135
1136
    /**
1137
     * @param  int $contentBitrate
1138
     * @return MediaInterface
1139
     */
1140 47
    public function setContentBitrate(?int $contentBitrate) : MediaInterface
1141
    {
1142 47
        $this->contentBitrate = $contentBitrate;
1143
1144 47
        return $this;
1145
    }
1146
1147
    /**
1148
     * @return int
1149
     */
1150 2
    public function getContentFramerate() : ?int
1151
    {
1152 2
        return $this->contentFramerate;
1153
    }
1154
1155
    /**
1156
     * @param  int $contentFramerate
1157
     * @return MediaInterface
1158
     */
1159 47
    public function setContentFramerate(?int $contentFramerate) : MediaInterface
1160
    {
1161 47
        $this->contentFramerate = $contentFramerate;
1162
1163 47
        return $this;
1164
    }
1165
1166
    /**
1167
     * @return float
1168
     */
1169 2
    public function getContentSamplingrate() : ?float
1170
    {
1171 2
        return $this->contentSamplingrate;
1172
    }
1173
1174
    /**
1175
     * @param  float $contentSamplingrate
1176
     * @return MediaInterface
1177
     */
1178 47
    public function setContentSamplingrate(?float $contentSamplingrate) : MediaInterface
1179
    {
1180 47
        $this->contentSamplingrate = $contentSamplingrate;
0 ignored issues
show
Documentation Bug introduced by
The property $contentSamplingrate was declared of type integer, but $contentSamplingrate is of type double. Maybe add a type cast?

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.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
1181
1182 47
        return $this;
1183
    }
1184
1185
    /**
1186
     * @return int
1187
     */
1188 2
    public function getContentDuration() : ?int
1189
    {
1190 2
        return $this->contentDuration;
1191
    }
1192
1193
    /**
1194
     * @param  int $contentDuration
1195
     * @return MediaInterface
1196
     */
1197 47
    public function setContentDuration(?int $contentDuration) : MediaInterface
1198
    {
1199 47
        $this->contentDuration = $contentDuration;
1200
1201 47
        return $this;
1202
    }
1203
1204
    /**
1205
     * @return int
1206
     */
1207 2
    public function getContentHeight() : ?int
1208
    {
1209 2
        return $this->contentHeight;
1210
    }
1211
1212
    /**
1213
     * @param  int $contentHeight
1214
     * @return MediaInterface
1215
     */
1216 47
    public function setContentHeight(?int $contentHeight) : MediaInterface
1217
    {
1218 47
        $this->contentHeight = $contentHeight;
1219
1220 47
        return $this;
1221
    }
1222
1223
    /**
1224
     * @return int
1225
     */
1226 2
    public function getContentWidth() : ?int
1227
    {
1228 2
        return $this->contentWidth;
1229
    }
1230
1231
    /**
1232
     * @param  int $contentWidth
1233
     * @return MediaInterface
1234
     */
1235 47
    public function setContentWidth(?int $contentWidth) : MediaInterface
1236
    {
1237 47
        $this->contentWidth = $contentWidth;
1238
1239 47
        return $this;
1240
    }
1241
1242
    /**
1243
     * @return string
1244
     */
1245 2
    public function getContentLang() : ?string
1246
    {
1247 2
        return $this->contentLang;
1248
    }
1249
1250
    /**
1251
     * @param  string $contentLang
1252
     * @return MediaInterface
1253
     */
1254 47
    public function setContentLang(?string $contentLang) : MediaInterface
1255
    {
1256 47
        $this->contentLang = $contentLang;
1257
1258 47
        return $this;
1259
    }
1260
1261
    /**
1262
     * @return string
1263
     */
1264 2
    public function getContentType() : ?string
1265
    {
1266 2
        return $this->contentType;
1267
    }
1268
1269
    /**
1270
     * @param  string $contentType
1271
     * @return MediaInterface
1272
     */
1273 47
    public function setContentType(?string $contentType) : MediaInterface
1274
    {
1275 47
        $this->contentType = $contentType;
1276
1277 47
        return $this;
1278
    }
1279
1280
    /**
1281
     * @return int
1282
     */
1283 2
    public function getContentExpression() : ?int
1284
    {
1285 2
        return $this->contentExpression;
1286
    }
1287
1288
    /**
1289
     * @param  int $contentExpression
1290
     * @return MediaInterface
1291
     */
1292 47
    public function setContentExpression(?int $contentExpression) : MediaInterface
1293
    {
1294 47
        $this->contentExpression = $contentExpression;
1295
1296 47
        return $this;
1297
    }
1298
1299
    /**
1300
     * @return int
1301
     */
1302 2
    public function getContentMedium() : ?int
1303
    {
1304 2
        return $this->contentMedium;
1305
    }
1306
1307
    /**
1308
     * @param  int $contentMedium
1309
     * @return MediaInterface
1310
     */
1311 47
    public function setContentMedium(?int $contentMedium) : MediaInterface
1312
    {
1313 47
        $this->contentMedium = $contentMedium;
1314
1315 47
        return $this;
1316
    }
1317
1318
    /**
1319
     * @return int
1320
     */
1321 1
    public function getRights() : ?int
1322
    {
1323 1
        return $this->rights;
1324
    }
1325
1326
    /**
1327
     * @param  int $rights
1328
     * @return MediaInterface
1329
     */
1330 1
    public function setRights(int $rights) : MediaInterface
1331
    {
1332 1
        $this->rights = $rights;
0 ignored issues
show
Documentation Bug introduced by
The property $rights was declared of type string, but $rights is of type integer. Maybe add a type cast?

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.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
1333
1334 1
        return $this;
1335
    }
1336
1337
1338
    /**
1339
     * @return string
1340
     */
1341 2
    public function getRating() : ?string
1342
    {
1343 2
        return $this->rating;
1344
    }
1345
1346
    /**
1347
     * @param  string $rating
1348
     * @return MediaInterface
1349
     */
1350 2
    public function setRating(?string $rating) : MediaInterface
1351
    {
1352 2
        $this->rating = $rating;
1353
1354 2
        return $this;
1355
    }
1356
1357
    /**
1358
     * @return string
1359
     */
1360 2
    public function getRatingScheme() : ?string
1361
    {
1362 2
        return $this->ratingScheme;
1363
    }
1364
1365
    /**
1366
     * @param  string $ratingScheme
1367
     * @return MediaInterface
1368
     */
1369 2
    public function setRatingScheme(?string $ratingScheme) : MediaInterface
1370
    {
1371 2
        $this->ratingScheme = $ratingScheme;
1372
1373 2
        return $this;
1374
    }
1375
1376
1377
    /**
1378
     * @return int
1379
     */
1380 2
    public function getTitleType() : ?int
1381
    {
1382 2
        return $this->titleType;
1383
    }
1384
1385
    /**
1386
     * @param  int $titleType
1387
     * @return MediaInterface
1388
     */
1389 4
    public function setTitleType(?int $titleType) : MediaInterface
1390
    {
1391 4
        $this->titleType = $titleType;
1392
1393 4
        return $this;
1394
    }
1395
1396
1397
    /**
1398
     * @return int
1399
     */
1400 2
    public function getDescriptionType() : ?int
1401
    {
1402 2
        return $this->descriptionType;
1403
    }
1404
1405
    /**
1406
     * @param  int $descriptionType
1407
     * @return MediaInterface
1408
     */
1409 5
    public function setDescriptionType(?int $descriptionType) : MediaInterface
1410
    {
1411 5
        $this->descriptionType = $descriptionType;
1412
1413 5
        return $this;
1414
    }
1415
1416
    /**
1417
     * @return array
1418
     */
1419 1
    public function getKeywords() : array
1420
    {
1421 1
        return $this->keywords;
1422
    }
1423
1424
    /**
1425
     * @param  array $keywords
1426
     * @return MediaInterface
1427
     */
1428 1
    public function setKeywords(array $keywords) : MediaInterface
1429
    {
1430 1
        $this->keywords = $keywords;
1431
1432 1
        return $this;
1433
    }
1434
1435
1436
    /**
1437
     * @return int
1438
     */
1439 2
    public function getThumbnailWidth() : ?int
1440
    {
1441 2
        return $this->thumbnailWidth;
1442
    }
1443
1444
    /**
1445
     * @param  int $thumbnailWidth
1446
     * @return MediaInterface
1447
     */
1448 3
    public function setThumbnailWidth(?int $thumbnailWidth) : MediaInterface
1449
    {
1450 3
        $this->thumbnailWidth = $thumbnailWidth;
1451
1452 3
        return $this;
1453
    }
1454
1455
    /**
1456
     * @return int
1457
     */
1458 2
    public function getThumbnailHeight() : ?int
1459
    {
1460 2
        return $this->thumbnailHeight;
1461
    }
1462
1463
    /**
1464
     * @param  int $thumbnailHeight
1465
     * @return MediaInterface
1466
     */
1467 3
    public function setThumbnailHeight(?int $thumbnailHeight) : MediaInterface
1468
    {
1469 3
        $this->thumbnailHeight = $thumbnailHeight;
1470
1471 3
        return $this;
1472
    }
1473
1474
    /**
1475
     * @return DateTime
1476
     */
1477 2
    public function getThumbnailTime() : ? \DateTime
1478
    {
1479 2
        return $this->thumbnailTime;
1480
    }
1481
1482
    /**
1483
     * @param  DateTime $thumbnailTime
1484
     * @return MediaInterface
1485
     */
1486 1
    public function setThumbnailTime(? \DateTime $thumbnailTime) : MediaInterface
1487
    {
1488 1
        $this->thumbnailTime = $thumbnailTime;
1489
1490 1
        return $this;
1491
    }
1492
1493
    /**
1494
     * @return string
1495
     */
1496 2
    public function getCategory() : ?string
1497
    {
1498 2
        return $this->category;
1499
    }
1500
1501
    /**
1502
     * @param  string $category
1503
     * @return MediaInterface
1504
     */
1505 2
    public function setCategory(?string $category) : MediaInterface
1506
    {
1507 2
        $this->category = $category;
1508
1509 2
        return $this;
1510
    }
1511
1512
    /**
1513
     * @return string
1514
     */
1515 2
    public function getCategoryLabel() : ?string
1516
    {
1517 2
        return $this->categoryLabel;
1518
    }
1519
1520
    /**
1521
     * @param  string $categoryLabel
1522
     * @return MediaInterface
1523
     */
1524 2
    public function setCategoryLabel(?string $categoryLabel) : MediaInterface
1525
    {
1526 2
        $this->categoryLabel = $categoryLabel;
1527
1528 2
        return $this;
1529
    }
1530
1531
    /**
1532
     * @return string
1533
     */
1534 2
    public function getCategoryScheme() : ?string
1535
    {
1536 2
        return $this->categoryScheme;
1537
    }
1538
1539
    /**
1540
     * @param  string $categoryScheme
1541
     * @return MediaInterface
1542
     */
1543 2
    public function setCategoryScheme(?string $categoryScheme) : MediaInterface
1544
    {
1545 2
        $this->categoryScheme = $categoryScheme;
1546
1547 2
        return $this;
1548
    }
1549
1550
    /**
1551
     * @return string
1552
     */
1553 2
    public function getHash() : ?string
1554
    {
1555 2
        return $this->hash;
1556
    }
1557
1558
    /**
1559
     * @param  string $hash
1560
     * @return MediaInterface
1561
     */
1562 2
    public function setHash(?string $hash) : MediaInterface
1563
    {
1564 2
        $this->hash = $hash;
1565
1566 2
        return $this;
1567
    }
1568
1569
    /**
1570
     * @return int
1571
     */
1572 2
    public function getHashAlgo() : ?int
1573
    {
1574 2
        return $this->hashAlgo;
1575
    }
1576
1577
    /**
1578
     * @param  int $hashAlgo
1579
     * @return MediaInterface
1580
     */
1581 2
    public function setHashAlgo(?int $hashAlgo) : MediaInterface
1582
    {
1583 2
        $this->hashAlgo = $hashAlgo;
0 ignored issues
show
Documentation Bug introduced by
The property $hashAlgo was declared of type string, but $hashAlgo is of type integer. Maybe add a type cast?

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.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
1584
1585 2
        return $this;
1586
    }
1587
1588
    /**
1589
     * @return string
1590
     */
1591 2
    public function getPlayerUrl() : ?string
1592
    {
1593 2
        return $this->playerUrl;
1594
    }
1595
1596
    /**
1597
     * @param  string $playerUrl
1598
     * @return MediaInterface
1599
     */
1600 2
    public function setPlayerUrl(?string $playerUrl) : MediaInterface
1601
    {
1602 2
        $this->playerUrl = $playerUrl;
1603
1604 2
        return $this;
1605
    }
1606
1607
    /**
1608
     * @return int
1609
     */
1610 2
    public function getPlayerWidth() : ?int
1611
    {
1612 2
        return $this->playerWidth;
1613
    }
1614
1615
    /**
1616
     * @param  int $playerWidth
1617
     * @return MediaInterface
1618
     */
1619 2
    public function setPlayerWidth(?int $playerWidth) : MediaInterface
1620
    {
1621 2
        $this->playerWidth = $playerWidth;
1622
1623 2
        return $this;
1624
    }
1625
1626
    /**
1627
     * @return int
1628
     */
1629 2
    public function getPlayerHeight() : ?int
1630
    {
1631 2
        return $this->playerHeight;
1632
    }
1633
1634
    /**
1635
     * @param  int $playerHeight
1636
     * @return MediaInterface
1637
     */
1638 2
    public function setPlayerHeight(?int $playerHeight) : MediaInterface
1639
    {
1640 2
        $this->playerHeight = $playerHeight;
1641
1642 2
        return $this;
1643
    }
1644
1645
    /**
1646
     * @return string
1647
     */
1648 2
    public function getCopyright() : ?string
1649
    {
1650 2
        return $this->copyright;
1651
    }
1652
1653
    /**
1654
     * @param  string $copyright
1655
     * @return MediaInterface
1656
     */
1657 2
    public function setCopyright(?string $copyright) : MediaInterface
1658
    {
1659 2
        $this->copyright = $copyright;
1660
1661 2
        return $this;
1662
    }
1663
1664
    /**
1665
     * @return string
1666
     */
1667 2
    public function getCopyrightUrl() : ?string
1668
    {
1669 2
        return $this->copyrightUrl;
1670
    }
1671
1672
    /**
1673
     * @param  string $copyrightUrl
1674
     * @return MediaInterface
1675
     */
1676 2
    public function setCopyrightUrl(?string $copyrightUrl) : MediaInterface
1677
    {
1678 2
        $this->copyrightUrl = $copyrightUrl;
1679
1680 2
        return $this;
1681
    }
1682
1683
    /**
1684
     * @return string
1685
     */
1686 2
    public function getRestriction() : ?string
1687
    {
1688 2
        return $this->restriction;
1689
    }
1690
1691
    /**
1692
     * @param  string $restriction
1693
     * @return MediaInterface
1694
     */
1695 2
    public function setRestriction(?string $restriction) : MediaInterface
1696
    {
1697 2
        $this->restriction = $restriction;
1698
1699 2
        return $this;
1700
    }
1701
1702
1703
    /**
1704
     * @return int
1705
     */
1706 2
    public function getRestrictionType() : ?int
1707
    {
1708 2
        return $this->restrictionType;
1709
    }
1710
1711
    /**
1712
     * @param  int $restrictionType
1713
     * @return MediaInterface
1714
     */
1715 2
    public function setRestrictionType(?int $restrictionType) : MediaInterface
1716
    {
1717 2
        $this->restrictionType = $restrictionType;
1718
1719 2
        return $this;
1720
    }
1721
1722
    /**
1723
     * @return int
1724
     */
1725 2
    public function getRestrictionRelationship() : ?int
1726
    {
1727 2
        return $this->restrictionRelationship;
1728
    }
1729
1730
    /**
1731
     * @param  int $restrictionRelationship
1732
     * @return MediaInterface
1733
     */
1734 2
    public function setRestrictionRelationship(?int $restrictionRelationship) : MediaInterface
1735
    {
1736 2
        $this->restrictionRelationship = $restrictionRelationship;
1737
1738 2
        return $this;
1739
    }
1740
1741
    /**
1742
     * @return float
1743
     */
1744 2
    public function getStarRatingAverage() : ?float
1745
    {
1746 2
        return $this->starRatingAverage;
1747
    }
1748
1749
    /**
1750
     * @param  float $starRatingAverage
1751
     * @return MediaInterface
1752
     */
1753 3
    public function setStarRatingAverage(?float $starRatingAverage) : MediaInterface
1754
    {
1755 3
        $this->starRatingAverage = $starRatingAverage;
1756
1757 3
        return $this;
1758
    }
1759
1760
    /**
1761
     * @return int
1762
     */
1763 2
    public function getStarRatingCount() : ?int
1764
    {
1765 2
        return $this->starRatingCount;
1766
    }
1767
1768
    /**
1769
     * @param  int $starRatingCount
1770
     * @return MediaInterface
1771
     */
1772 3
    public function setStarRatingCount(?int $starRatingCount) : MediaInterface
1773
    {
1774 3
        $this->starRatingCount = $starRatingCount;
1775
1776 3
        return $this;
1777
    }
1778
1779
    /**
1780
     * @return int
1781
     */
1782 2
    public function getStarRatingMin() : ?int
1783
    {
1784 2
        return $this->starRatingMin;
1785
    }
1786
1787
    /**
1788
     * @param  int $starRatingMin
1789
     * @return MediaInterface
1790
     */
1791 3
    public function setStarRatingMin(?int $starRatingMin) : MediaInterface
1792
    {
1793 3
        $this->starRatingMin = $starRatingMin;
1794
1795 3
        return $this;
1796
    }
1797
1798
    /**
1799
     * @return int
1800
     */
1801 2
    public function getStarRatingMax() : ?int
1802
    {
1803 2
        return $this->starRatingMax;
1804
    }
1805
1806
    /**
1807
     * @param  int $starRatingMax
1808
     * @return MediaInterface
1809
     */
1810 3
    public function setStarRatingMax(?int $starRatingMax) : MediaInterface
1811
    {
1812 3
        $this->starRatingMax = $starRatingMax;
1813
1814 3
        return $this;
1815
    }
1816
1817
    /**
1818
     * @return int
1819
     */
1820 2
    public function getNbViews() : ?int
1821
    {
1822 2
        return $this->nbViews;
1823
    }
1824
1825
    /**
1826
     * @param  int $nbViews
1827
     * @return MediaInterface
1828
     */
1829 3
    public function setNbViews(?int $nbViews) : MediaInterface
1830
    {
1831 3
        $this->nbViews = $nbViews;
1832
1833 3
        return $this;
1834
    }
1835
1836
    /**
1837
     * @return int
1838
     */
1839 2
    public function getNbFavorites() : ?int
1840
    {
1841 2
        return $this->nbFavorites;
1842
    }
1843
1844
    /**
1845
     * @param  int $nbFavorites
1846
     * @return MediaInterface
1847
     */
1848 3
    public function setNbFavorites(?int $nbFavorites) : MediaInterface
1849
    {
1850 3
        $this->nbFavorites = $nbFavorites;
1851
1852 3
        return $this;
1853
    }
1854
1855
    /**
1856
     * @return array
1857
     */
1858 2
    public function getTags() : array
1859
    {
1860 2
        return $this->tags;
1861
    }
1862
1863
    /**
1864
     * @param  array $tags
1865
     * @return MediaInterface
1866
     */
1867 3
    public function setTags(array $tags) : MediaInterface
1868
    {
1869 3
        $this->tags = $tags;
1870
1871 3
        return $this;
1872
    }
1873
1874
    /**
1875
     * @return array
1876
     */
1877 2
    public function getComments() : array
1878
    {
1879 2
        return $this->comments;
1880
    }
1881
1882
    /**
1883
     * @param  array $comments
1884
     * @return MediaInterface
1885
     */
1886 2
    public function setComments(array $comments) : MediaInterface
1887
    {
1888 2
        $this->comments = $comments;
1889
1890 2
        return $this;
1891
    }
1892
1893
1894
    /**
1895
     * @return string
1896
     */
1897 2
    public function getEmbedUrl() : ?string
1898
    {
1899 2
        return $this->embedUrl;
1900
    }
1901
1902
    /**
1903
     * @param  string $embedUrl
1904
     * @return MediaInterface
1905
     */
1906 2
    public function setEmbedUrl(?string $embedUrl) : MediaInterface
1907
    {
1908 2
        $this->embedUrl = $embedUrl;
1909
1910 2
        return $this;
1911
    }
1912
1913
    /**
1914
     * @return int
1915
     */
1916 2
    public function getEmbedWidth() : ?int
1917
    {
1918 2
        return $this->embedWidth;
1919
    }
1920
1921
    /**
1922
     * @param  int $embedWidth
1923
     * @return MediaInterface
1924
     */
1925 2
    public function setEmbedWidth(?int $embedWidth) : MediaInterface
1926
    {
1927 2
        $this->embedWidth = $embedWidth;
1928
1929 2
        return $this;
1930
    }
1931
1932
    /**
1933
     * @return int
1934
     */
1935 2
    public function getEmbedHeight() : ?int
1936
    {
1937 2
        return $this->embedHeight;
1938
    }
1939
1940
    /**
1941
     * @param  int $embedHeight
1942
     * @return MediaInterface
1943
     */
1944 2
    public function setEmbedHeight(?int $embedHeight) : MediaInterface
1945
    {
1946 2
        $this->embedHeight = $embedHeight;
1947
1948 2
        return $this;
1949
    }
1950
1951
    /**
1952
     * @return array
1953
     */
1954 2
    public function getEmbedParams() : array
1955
    {
1956 2
        return $this->embedParams;
1957
    }
1958
1959
    /**
1960
     * @param  array $embedParams
1961
     * @return MediaInterface
1962
     */
1963 2
    public function setEmbedParams(array $embedParams) : MediaInterface
1964
    {
1965 2
        $this->embedParams = $embedParams;
1966
1967 2
        return $this;
1968
    }
1969
1970
    /**
1971
     * @return array
1972
     */
1973 2
    public function getResponses() : array
1974
    {
1975 2
        return $this->responses;
1976
    }
1977
1978
    /**
1979
     * @param  array $responses
1980
     * @return MediaInterface
1981
     */
1982 2
    public function setResponses(array $responses) : MediaInterface
1983
    {
1984 2
        $this->responses = $responses;
1985
1986 2
        return $this;
1987
    }
1988
1989
    /**
1990
     * @return array
1991
     */
1992 2
    public function getBacklinks() : array
1993
    {
1994 2
        return $this->backlinks;
1995
    }
1996
1997
    /**
1998
     * @param  array $backlinks
1999
     * @return MediaInterface
2000
     */
2001 2
    public function setBacklinks(array $backlinks) : MediaInterface
2002
    {
2003 2
        $this->backlinks = $backlinks;
2004
2005 2
        return $this;
2006
    }
2007
2008
    /**
2009
     * @return int
2010
     */
2011 2
    public function getStatus() : ?int
2012
    {
2013 2
        return $this->status;
2014
    }
2015
2016
    /**
2017
     * @param  int $status
2018
     * @return MediaInterface
2019
     */
2020 2
    public function setStatus(?int $status) : MediaInterface
2021
    {
2022 2
        $this->status = $status;
2023
2024 2
        return $this;
2025
    }
2026
2027
    /**
2028
     * @return string
2029
     */
2030 2
    public function getStatusReason() : ?string
2031
    {
2032 2
        return $this->statusReason;
2033
    }
2034
2035
    /**
2036
     * @param  string $statusReason
2037
     * @return MediaInterface
2038
     */
2039 2
    public function setStatusReason(?string $statusReason) : MediaInterface
2040
    {
2041 2
        $this->statusReason = $statusReason;
2042
2043 2
        return $this;
2044
    }
2045
2046
    /**
2047
     * @return string
2048
     */
2049 1
    public function getLicense() : ?string
2050
    {
2051 1
        return $this->license;
2052
    }
2053
2054
    /**
2055
     * @param  string $license
2056
     * @return MediaInterface
2057
     */
2058 1
    public function setLicense(?string $license) : MediaInterface
2059
    {
2060 1
        $this->license = $license;
2061
2062 1
        return $this;
2063
    }
2064
2065
    /**
2066
     * @return string
2067
     */
2068 1
    public function getLicenseUrl() : ?string
2069
    {
2070 1
        return $this->licenseUrl;
2071
    }
2072
2073
    /**
2074
     * @param  string $licenseUrl
2075
     * @return MediaInterface
2076
     */
2077 1
    public function setLicenseUrl(?string $licenseUrl) : MediaInterface
2078
    {
2079 1
        $this->licenseUrl = $licenseUrl;
2080
2081 1
        return $this;
2082
    }
2083
2084
    /**
2085
     * @return string
2086
     */
2087 1
    public function getLicenseType() : ?string
2088
    {
2089 1
        return $this->licenseType;
2090
    }
2091
2092
    /**
2093
     * @param  string $licenseType
2094
     * @return MediaInterface
2095
     */
2096 1
    public function setLicenseType(?string $licenseType) : MediaInterface
2097
    {
2098 1
        $this->licenseType = $licenseType;
2099
2100 1
        return $this;
2101
    }
2102
2103
    /**
2104
     * @return string
2105
     */
2106 1
    public function getPeerLink() : ?string
2107
    {
2108 1
        return $this->peerLink;
2109
    }
2110
2111
    /**
2112
     * @param  string $peerLink
2113
     * @return MediaInterface
2114
     */
2115 1
    public function setPeerLink(?string $peerLink) : MediaInterface
2116
    {
2117 1
        $this->peerLink = $peerLink;
2118
2119 1
        return $this;
2120
    }
2121
2122
    /**
2123
     * @return string
2124
     */
2125 1
    public function getPeerLinkType() : ?string
2126
    {
2127 1
        return $this->peerLinkType;
2128
    }
2129
2130
    /**
2131
     * @param  string $peerLinkType
2132
     * @return MediaInterface
2133
     */
2134 1
    public function setPeerLinkType(?string $peerLinkType) : MediaInterface
2135
    {
2136 1
        $this->peerLinkType = $peerLinkType;
2137
2138 1
        return $this;
2139
    }
2140
2141
    /**
2142
     * @return array
2143
     */
2144 2
    public function getCredits() : array
2145
    {
2146 2
        return $this->credits;
2147
    }
2148
2149
    /**
2150
     * @param  array $credits
2151
     * @return MediaInterface
2152
     */
2153 2
    public function setCredits(array $credits) : MediaInterface
2154
    {
2155 2
        $this->credits = $credits;
2156
2157 2
        return $this;
2158
    }
2159
2160
    /**
2161
     * @return array
2162
     */
2163 2
    public function getTexts() : array
2164
    {
2165 2
        return $this->texts;
2166
    }
2167
2168
    /**
2169
     * @param  array $texts
2170
     * @return MediaInterface
2171
     */
2172 2
    public function setTexts(array $texts) : MediaInterface
2173
    {
2174 2
        $this->texts = $texts;
2175
2176 2
        return $this;
2177
    }
2178
2179
    /**
2180
     * @return array
2181
     */
2182 2
    public function getPrices() : array
2183
    {
2184 2
        return $this->prices;
2185
    }
2186
2187
    /**
2188
     * @param  array $prices
2189
     * @return MediaInterface
2190
     */
2191 2
    public function setPrices(array $prices) : MediaInterface
2192
    {
2193 2
        $this->prices = $prices;
2194
2195 2
        return $this;
2196
    }
2197
2198
    /**
2199
     * @return array
2200
     */
2201 1
    public function getSubTitles() : array
2202
    {
2203 1
        return $this->subTitles;
2204
    }
2205
2206
    /**
2207
     * @param  array $subTitles
2208
     * @return MediaInterface
2209
     */
2210 1
    public function setSubTitles(array $subTitles) : MediaInterface
2211
    {
2212 1
        $this->subTitles = $subTitles;
2213
2214 1
        return $this;
2215
    }
2216
2217
    /**
2218
     * @return array
2219
     */
2220 1
    public function getScenes() : array
2221
    {
2222 1
        return $this->scenes;
2223
    }
2224
2225
    /**
2226
     * @param  array $scenes
2227
     * @return MediaInterface
2228
     */
2229 1
    public function setScenes(array $scenes) : MediaInterface
2230
    {
2231 1
        $this->scenes = $scenes;
2232
2233 1
        return $this;
2234
    }
2235
2236
    /**
2237
     * @return bool
2238
     */
2239 2
    public function isDefault() : bool
2240
    {
2241 2
        return $this->default;
2242
    }
2243
2244
    /**
2245
     * @param bool $default
2246
     * @return MediaInterface
2247
     */
2248 1
    public function setDefault(bool $default) : MediaInterface
2249
    {
2250 1
        $this->default = $default;
2251
2252 1
        return $this;
2253
    }
2254
}
2255