Total Complexity | 6 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 0 |
1 | <?php |
||
21 | class Link extends AbstractWebResource |
||
22 | { |
||
23 | protected ?string $title = null; |
||
24 | |||
25 | 660 | public function __construct(string $url, ?string $label = null, ?string $title = null) |
|
26 | { |
||
27 | 660 | parent::__construct($url); |
|
28 | |||
29 | 660 | if ($label !== null && $label !== '') { |
|
30 | 402 | $this->appendChild(new Text($label)); |
|
31 | } |
||
32 | |||
33 | 660 | $this->title = $title; |
|
34 | } |
||
35 | |||
36 | 620 | public function getTitle(): ?string |
|
43 | } |
||
44 | |||
45 | public function setTitle(?string $title): void |
||
50 |