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