| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class ElementNode extends SelfCloseNode |
||
| 21 | { |
||
| 22 | /** @var string */ |
||
| 23 | public $html; |
||
| 24 | |||
| 25 | /** @var array<int,ElementNode> */ |
||
| 26 | public $children = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array<int,AttributeNode> $attributes |
||
| 30 | */ |
||
| 31 | 1 | public function __construct(string $name, string $html = '', array $attributes = []) |
|
| 32 | { |
||
| 33 | 1 | parent::__construct($name, $attributes); |
|
| 34 | 1 | $this->html = $html; |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | public function __toString(): string |
|
| 46 | } |
||
| 47 | } |
||
| 48 |