| 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 | 628 | public function __construct(string $url, ?string $label = null, ?string $title = null) |
|
| 26 | { |
||
| 27 | 628 | parent::__construct($url); |
|
| 28 | |||
| 29 | 628 | if ($label !== null && $label !== '') { |
|
| 30 | 386 | $this->appendChild(new Text($label)); |
|
| 31 | } |
||
| 32 | |||
| 33 | 628 | $this->title = $title; |
|
| 34 | } |
||
| 35 | |||
| 36 | 592 | public function getTitle(): ?string |
|
| 43 | } |
||
| 44 | |||
| 45 | public function setTitle(?string $title): void |
||
| 50 |