Conditions | 5 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
23 | 90 | public function __construct(string $url, ?string $label = null, ?string $title = null) |
|
24 | { |
||
25 | 90 | parent::__construct($url); |
|
26 | |||
27 | 90 | if ($label !== null && $label !== '') { |
|
28 | 6 | $this->appendChild(new Text($label)); |
|
29 | } |
||
30 | |||
31 | 90 | if ($title !== null && $title !== '') { |
|
32 | 39 | $this->data->set('title', $title); |
|
33 | } |
||
36 |