Passed
Push — master ( 803693...151800 )
by Dāvis
03:44
created

VideoTrait::setFamilyFriendly()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Sludio\HelperBundle\Sitemap\Entity;
4
5
trait VideoTrait
6
{
7
    protected $thumbnailLoc = null;
8
    protected $title = null;
9
    protected $description = null;
10
    protected $contentLoc = null;
11
    protected $playerLoc = null;
12
    protected $duration = null;
13
    protected $expirationDate = null;
14
    protected $rating = null;
15
    protected $viewCount = null;
16
    protected $publicationDate = null;
17
    protected $familyFriendly = null;
18
    protected $tags = [];
19
    protected $category = null;
20
    protected $restrictions = null;
21
    protected $galleryLoc = null;
22
    protected $requiresSubscription = null;
23
    protected $uploader = null;
24
    protected $platforms = null;
25
    protected $live = null;
26
27
    public function getTitle()
28
    {
29
        return $this->title;
30
    }
31
32
    public function setThumbnailLoc($loc)
33
    {
34
        $this->thumbnailLoc = $loc;
35
36
        return $this;
37
    }
38
39
    public function getThumbnailLoc()
40
    {
41
        return $this->thumbnailLoc;
42
    }
43
44
    public function getDescription()
45
    {
46
        return $this->description;
47
    }
48
49
    public function setContentLoc($loc)
50
    {
51
        $this->contentLoc = $loc;
52
53
        return $this;
54
    }
55
56
    public function getContentLoc()
57
    {
58
        return $this->contentLoc;
59
    }
60
61
    public function getPlayerLoc()
62
    {
63
        return $this->playerLoc;
64
    }
65
66
    public function getDuration()
67
    {
68
        return $this->duration;
69
    }
70
71
    public function getRating()
72
    {
73
        return $this->rating;
74
    }
75
76
    public function getViewCount()
77
    {
78
        return $this->viewCount;
79
    }
80
81
    public function setFamilyFriendly($friendly)
82
    {
83
        $this->familyFriendly = (bool)$friendly;
84
85
        return $this;
86
    }
87
88
    public function getFamilyFriendly()
89
    {
90
        return $this->familyFriendly;
91
    }
92
93
    public function getTags()
94
    {
95
        return $this->tags;
96
    }
97
98
    public function getCategory()
99
    {
100
        return $this->category;
101
    }
102
103
    public function getRestrictions()
104
    {
105
        return $this->restrictions;
106
    }
107
108
    public function getGalleryLoc()
109
    {
110
        return $this->galleryLoc;
111
    }
112
113
    public function setRequiresSubscription($requiresSubscription)
114
    {
115
        $this->requiresSubscription = (bool)$requiresSubscription;
116
117
        return $this;
118
    }
119
120
    public function getRequiresSubscription()
121
    {
122
        return $this->requiresSubscription;
123
    }
124
125
    public function getUploader()
126
    {
127
        return $this->uploader;
128
    }
129
130
    public function getPlatforms()
131
    {
132
        return $this->platforms;
133
    }
134
135
    public function setLive($live)
136
    {
137
        $this->live = (bool)$live;
138
139
        return $this;
140
    }
141
142
    public function getLive()
143
    {
144
        return $this->live;
145
    }
146
}