| 1 | <?php |
||
| 8 | abstract class ClosedElement extends Element |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Reimplement appendChild so that no children can be added. |
||
| 12 | */ |
||
| 13 | 1 | public function appendChild(Token $token) |
|
| 17 | |||
| 18 | /** |
||
| 19 | * Reimplement prependChild so that no children can be added. |
||
| 20 | */ |
||
| 21 | 1 | public function prependChild(Token $token) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Required by the Token interface. |
||
| 28 | */ |
||
| 29 | 47 | public function toHtml(string $prefix, string $suffix) : string |
|
| 33 | } |
||
| 34 |