1 | <?php |
||
5 | class TagRenderer |
||
6 | { |
||
7 | /** @var string */ |
||
8 | protected $element; |
||
9 | |||
10 | /** @var \Spatie\HtmlElement\Attributes */ |
||
11 | protected $attributes; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $contents; |
||
15 | |||
16 | public static function render(string $element, Attributes $attributes, string $contents) : string |
||
20 | |||
21 | protected function __construct(string $element, Attributes $attributes, string $contents) |
||
27 | |||
28 | protected function renderTag() : string |
||
36 | |||
37 | protected function renderOpeningTag() : string |
||
43 | |||
44 | protected function renderClosingTag() : string |
||
48 | |||
49 | protected function isSelfClosingTag() : bool |
||
57 | } |
||
58 |