1 | <?php |
||
5 | final class Text implements ElementInterface |
||
6 | { |
||
7 | private $text; |
||
8 | |||
9 | public function __construct(string $text) |
||
13 | |||
14 | public function render(): string |
||
18 | |||
19 | /** |
||
20 | * Does nothing. |
||
21 | * @param string $key |
||
22 | * @param string $value |
||
23 | * @return Text |
||
24 | * @throws \ErrorException |
||
25 | */ |
||
26 | public function withAttribute(string $key, string $value = null): Text |
||
30 | } |
||
31 |