| 1 | <?php |
||
| 9 | class Html implements Item, Activatable, HasParentAttributes |
||
| 10 | { |
||
| 11 | use ActivatableTrait, HasParentAttributesTrait; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $html; |
||
| 15 | |||
| 16 | /** @var bool */ |
||
| 17 | protected $active = false; |
||
| 18 | |||
| 19 | /** @var \Spatie\HtmlElement\Attributes */ |
||
| 20 | protected $parentAttributes; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $html |
||
| 24 | */ |
||
| 25 | protected function __construct(string $html) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Create an item containing a chunk of raw html. |
||
| 33 | * |
||
| 34 | * @param string $html |
||
| 35 | * |
||
| 36 | * @return static |
||
| 37 | */ |
||
| 38 | public static function raw(string $html) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function html(): string |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function render(): string |
||
| 58 | } |
||
| 59 |