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