Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | public function __construct(string $value, Emoji $emoji, string $url, ?string $alt = null, ?string $title = null) |
||
13 | { |
||
14 | parent::__construct($value); |
||
15 | |||
16 | $this->emoji = $emoji; |
||
17 | |||
18 | $this->attributes->set('src', $url); |
||
19 | |||
20 | if ($alt !== null) { |
||
21 | $this->attributes->set('alt', $alt); |
||
22 | } |
||
23 | |||
24 | if ($title !== null) { |
||
25 | $this->attributes->set('title', $title); |
||
26 | } |
||
44 |