Total Complexity | 7 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 1 | final class Source extends \stdClass implements IXmlConvertible { |
|
14 | 1 | use \Nette\SmartObject; |
|
15 | |||
16 | /** @var string */ |
||
17 | protected $url; |
||
18 | /** @var string */ |
||
19 | protected $title; |
||
20 | |||
21 | public function __construct(string $url = "", string $title = "") { |
||
22 | 1 | $this->url = $url; |
|
23 | 1 | $this->title = $title; |
|
24 | 1 | } |
|
25 | |||
26 | protected function getUrl(): string { |
||
28 | } |
||
29 | |||
30 | protected function setUrl(string $url): void { |
||
31 | 1 | $this->url = $url; |
|
32 | 1 | } |
|
33 | |||
34 | protected function getTitle(): string { |
||
36 | } |
||
37 | |||
38 | protected function setTitle(string $title): void { |
||
39 | 1 | $this->title = $title; |
|
40 | 1 | } |
|
41 | |||
42 | public function appendToXml(\SimpleXMLElement &$parent): void { |
||
46 | } |
||
47 | 1 | } |
|
49 | ?> |