Total Complexity | 9 |
Total Lines | 74 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class HtmlBuilder implements StringableInterface |
||
14 | { |
||
15 | /** |
||
16 | * The tag scope. |
||
17 | * |
||
18 | * @var \drupol\htmltag\Tag\TagInterface|null |
||
19 | */ |
||
20 | private $scope; |
||
21 | |||
22 | /** |
||
23 | * The storage. |
||
24 | * |
||
25 | * @var \drupol\htmltag\Tag\TagInterface[]|string[] |
||
26 | */ |
||
27 | private $storage; |
||
28 | |||
29 | public function __call($name, array $arguments = []) |
||
50 | 1 | } |
|
51 | |||
52 | public function __toString(): string |
||
61 | 1 | } |
|
62 | |||
63 | /** |
||
64 | 1 | * Add the current tag to the stack. |
|
65 | * |
||
66 | * @param \drupol\htmltag\Tag\TagInterface $tag |
||
67 | * The tag |
||
68 | * @param bool $updateScope |
||
69 | * True if the current scope needs to be updated |
||
70 | * |
||
71 | * @return \drupol\htmltag\HtmlBuilder |
||
72 | * The HTML Builder object |
||
73 | */ |
||
74 | private function update(TagInterface $tag, $updateScope = false) |
||
89 |