1 | <?php |
||
13 | final class HtmlBuilder implements StringableInterface |
||
14 | { |
||
15 | /** |
||
16 | * The tag scope. |
||
17 | * |
||
18 | * @var null|\drupol\htmltag\Tag\TagInterface |
||
19 | */ |
||
20 | private $scope; |
||
21 | |||
22 | /** |
||
23 | * The storage. |
||
24 | * |
||
25 | * @var \drupol\htmltag\Tag\TagInterface[]|string[] |
||
26 | */ |
||
27 | private $storage; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 1 | public function __call($name, array $arguments = []) |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 1 | public function __toString() |
|
68 | |||
69 | /** |
||
70 | * Add the current tag to the stack. |
||
71 | * |
||
72 | * @param \drupol\htmltag\Tag\TagInterface $tag |
||
73 | * The tag |
||
74 | * @param bool $updateScope |
||
75 | * True if the current scope needs to be updated |
||
76 | * |
||
77 | * @return \drupol\htmltag\HtmlBuilder |
||
78 | * The HTML Builder object |
||
79 | */ |
||
80 | 1 | private function update(TagInterface $tag, $updateScope = false) |
|
94 | } |
||
95 |