Total Complexity | 8 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | 1 | final class Enclosure implements IXmlConvertible { |
|
15 | 1 | use \Nette\SmartObject; |
|
16 | |||
17 | /** @var string */ |
||
18 | protected $url; |
||
19 | /** @var int */ |
||
20 | protected $length; |
||
21 | /** @var string */ |
||
22 | protected $type; |
||
23 | |||
24 | public function __construct(string $url, int $length, string $type) { |
||
25 | 1 | $this->url = $url; |
|
26 | 1 | $this->length = $length; |
|
27 | 1 | $this->type = $type; |
|
28 | 1 | } |
|
29 | |||
30 | public function getUrl(): string { |
||
31 | 1 | return $this->url; |
|
32 | } |
||
33 | |||
34 | public function setUrl(string $url): void { |
||
35 | 1 | $this->url = $url; |
|
36 | 1 | } |
|
37 | |||
38 | public function getLength(): int { |
||
39 | 1 | return $this->length; |
|
40 | } |
||
41 | |||
42 | public function setLength(int $length): void { |
||
43 | 1 | $this->length = $length; |
|
44 | 1 | } |
|
45 | |||
46 | public function getType(): string { |
||
47 | 1 | return $this->type; |
|
48 | } |
||
49 | |||
50 | public function setType(string $type): void { |
||
51 | 1 | $this->type = $type; |
|
52 | 1 | } |
|
53 | |||
54 | public function appendToXml(\SimpleXMLElement &$parent): void { |
||
59 | 1 | } |
|
60 | } |
||
61 | ?> |