1 | <?php declare(strict_types=1); |
||
15 | class Media implements MediaInterface, ArrayableInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $nodeName; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $type; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $url; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $length; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $title; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $description; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | protected $thumbnail; |
||
51 | |||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getNodeName() : string |
||
60 | |||
61 | /** |
||
62 | * @param string $nodeName |
||
63 | 5 | * @return MediaInterface |
|
64 | */ |
||
65 | 5 | public function setNodeName(string $nodeName) : MediaInterface |
|
71 | |||
72 | /** |
||
73 | * @deprecated |
||
74 | * @return bool |
||
75 | */ |
||
76 | public function isThumbnail() : bool |
||
81 | |||
82 | /** |
||
83 | 5 | * @return string |
|
84 | */ |
||
85 | 5 | public function getType() : ? string |
|
89 | |||
90 | /** |
||
91 | * @param string $type |
||
92 | 7 | * @return MediaInterface |
|
93 | */ |
||
94 | 7 | public function setType(?string $type) : MediaInterface |
|
100 | |||
101 | /** |
||
102 | 7 | * @return string |
|
103 | */ |
||
104 | 7 | public function getUrl() : ? string |
|
108 | |||
109 | /** |
||
110 | * @param string $url |
||
111 | 7 | * @return MediaInterface |
|
112 | */ |
||
113 | 7 | public function setUrl(?string $url) : MediaInterface |
|
119 | |||
120 | /** |
||
121 | 3 | * @return string |
|
122 | */ |
||
123 | 3 | public function getLength() : ? string |
|
127 | |||
128 | /** |
||
129 | * @param string $length |
||
130 | 6 | * @return MediaInterface |
|
131 | */ |
||
132 | 6 | public function setLength(?string $length) : MediaInterface |
|
138 | |||
139 | |||
140 | /** |
||
141 | 1 | * @return string |
|
142 | */ |
||
143 | 1 | public function getTitle() : ? string |
|
147 | |||
148 | /** |
||
149 | * @param string $title |
||
150 | 1 | * @return MediaInterface |
|
151 | */ |
||
152 | 1 | public function setTitle(?string $title) : MediaInterface |
|
158 | |||
159 | /** |
||
160 | 1 | * @return string |
|
161 | */ |
||
162 | 1 | public function getDescription() : ? string |
|
166 | |||
167 | /** |
||
168 | * @param string $description |
||
169 | 1 | * @return MediaInterface |
|
170 | */ |
||
171 | 1 | public function setDescription(?string $description) : MediaInterface |
|
177 | |||
178 | /** |
||
179 | 1 | * @return string |
|
180 | */ |
||
181 | 1 | public function getThumbnail() : ? string |
|
185 | |||
186 | /** |
||
187 | * @param string $thumbnail |
||
188 | 1 | * @return MediaInterface |
|
189 | */ |
||
190 | 1 | public function setThumbnail(?string $thumbnail) : MediaInterface |
|
196 | |||
197 | /** |
||
198 | * @return array |
||
199 | */ |
||
200 | public function toArray() : array |
||
204 | } |
||
205 |