| 1 |
<?php |
| 2 |
|
| 3 |
namespace ipl\Html\Contract; |
| 4 |
|
| 5 |
use ipl\Html\ValidHtml; |
| 6 |
|
| 7 |
interface DecorationResult |
| 8 |
{ |
| 9 |
/** |
| 10 |
* Add the given HTML to the end of the result |
| 11 |
* |
| 12 |
* @param ValidHtml $html The HTML to add |
| 13 |
* |
| 14 |
* @return $this |
| 15 |
*/ |
| 16 |
public function append(ValidHtml $html): static; |
| 17 |
|
| 18 |
/** |
| 19 |
* Prepend the given HTML to the beginning of the result |
| 20 |
* |
| 21 |
* @param ValidHtml $html The HTML to prepend |
| 22 |
* |
| 23 |
* @return $this |
| 24 |
*/ |
| 25 |
public function prepend(ValidHtml $html): static; |
| 26 |
|
| 27 |
/** |
| 28 |
* Set the given HTML as the container of the result |
| 29 |
* |
| 30 |
* @param MutableHtml $html The container |
| 31 |
* |
| 32 |
* @return $this |
| 33 |
*/ |
| 34 |
public function wrap(MutableHtml $html): static; |
| 35 |
} |