| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function __construct(string $value, Emoji $emoji, string $url, ?string $alt = null) |
||
| 16 | { |
||
| 17 | parent::__construct($value, $emoji); |
||
| 18 | |||
| 19 | $this->element = new HtmlElement('img', [], '', true); |
||
| 20 | |||
| 21 | $this->element->setAttribute('src', $url); |
||
| 22 | |||
| 23 | if ($alt !== null) { |
||
| 24 | $this->element->setAttribute('alt', $alt); |
||
| 25 | } |
||
| 53 |