| 1 | <?php |
||
| 8 | class Html implements Item |
||
| 9 | { |
||
| 10 | use Activatable, ParentAttributes; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | protected $html; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $html |
||
| 17 | */ |
||
| 18 | protected function __construct(string $html) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create an item containing a chunk of raw html. |
||
| 28 | * |
||
| 29 | * @param string $html |
||
| 30 | * |
||
| 31 | * @return static |
||
| 32 | */ |
||
| 33 | public static function raw(string $html) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getHtml() : string |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function render() : string |
||
| 53 | } |
||
| 54 |