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