1 | <?php declare(strict_types=1); |
||
13 | class Media implements MediaInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $nodeName; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $type; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $url; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $length; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $title; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $description; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $thumbnail; |
||
49 | |||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getNodeName() : string |
||
58 | |||
59 | /** |
||
60 | * @param string $nodeName |
||
61 | * @return MediaInterface |
||
62 | */ |
||
63 | 5 | public function setNodeName(string $nodeName) : MediaInterface |
|
69 | |||
70 | /** |
||
71 | * @deprecated |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function isThumbnail() : bool |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | 5 | public function getType() : ? string |
|
87 | |||
88 | /** |
||
89 | * @param string $type |
||
90 | * @return MediaInterface |
||
91 | */ |
||
92 | 7 | public function setType(?string $type) : MediaInterface |
|
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | 7 | public function getUrl() : ? string |
|
106 | |||
107 | /** |
||
108 | * @param string $url |
||
109 | * @return MediaInterface |
||
110 | */ |
||
111 | 7 | public function setUrl(?string $url) : MediaInterface |
|
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | 3 | public function getLength() : ? string |
|
125 | |||
126 | /** |
||
127 | * @param string $length |
||
128 | * @return MediaInterface |
||
129 | */ |
||
130 | 6 | public function setLength(?string $length) : MediaInterface |
|
136 | |||
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | 1 | public function getTitle() : ? string |
|
145 | |||
146 | /** |
||
147 | * @param string $title |
||
148 | * @return MediaInterface |
||
149 | */ |
||
150 | 1 | public function setTitle(?string $title) : MediaInterface |
|
156 | |||
157 | /** |
||
158 | * @return string |
||
159 | */ |
||
160 | 1 | public function getDescription() : ? string |
|
164 | |||
165 | /** |
||
166 | * @param string $description |
||
167 | * @return MediaInterface |
||
168 | */ |
||
169 | 1 | public function setDescription(?string $description) : MediaInterface |
|
175 | |||
176 | /** |
||
177 | * @return string |
||
178 | */ |
||
179 | 1 | public function getThumbnail() : ? string |
|
183 | |||
184 | /** |
||
185 | * @param string $thumbnail |
||
186 | * @return MediaInterface |
||
187 | */ |
||
188 | 1 | public function setThumbnail(?string $thumbnail) : MediaInterface |
|
194 | } |
||
195 |