| 1 | <?php |
||
| 7 | trait ParentAttributes |
||
| 8 | { |
||
| 9 | /** @var \Spatie\HtmlElement\Attributes */ |
||
| 10 | protected $parentAttributes; |
||
| 11 | |||
| 12 | protected function bootParentAttributes() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Return an array of attributes to apply on the parent. This generally means the attributes |
||
| 19 | * that should be applied on the <li> tag. |
||
| 20 | * |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | public function getParentAttributes() : array |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $attribute |
||
| 30 | * @param string $value |
||
| 31 | * |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setParentAttribute(string $attribute, string $value = '') |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $class |
||
| 43 | * |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function addParentClass(string $class) |
||
| 52 | } |
||
| 53 |