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 | * @return string |
||
37 | */ |
||
38 | public function getNodeName() : string |
||
42 | |||
43 | /** |
||
44 | * @param string $nodeName |
||
45 | * @return MediaInterface |
||
46 | */ |
||
47 | 4 | public function setNodeName(string $nodeName) : MediaInterface |
|
53 | |||
54 | /** |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function isThumbnail() : bool |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | 5 | public function getType() : ? string |
|
69 | |||
70 | /** |
||
71 | * @param string $type |
||
72 | * @return MediaInterface |
||
73 | */ |
||
74 | 7 | public function setType(?string $type) : MediaInterface |
|
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | 6 | public function getUrl() : ? string |
|
88 | |||
89 | /** |
||
90 | * @param string $url |
||
91 | * @return MediaInterface |
||
92 | */ |
||
93 | 6 | public function setUrl(?string $url) : MediaInterface |
|
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | 3 | public function getLength() : ? string |
|
107 | |||
108 | /** |
||
109 | * @param string $length |
||
110 | * @return MediaInterface |
||
111 | */ |
||
112 | 6 | public function setLength(?string $length) : MediaInterface |
|
118 | } |
||
119 |