| 1 | <?php namespace NukaCode\Menu\Traits; |
||
| 9 | trait Activate { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Is the link active. |
||
| 13 | * |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | public $active; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Set this link as active. |
||
| 20 | * |
||
| 21 | * @param bool $bool |
||
| 22 | * |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | 4 | public function setActive($bool = true) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Check if the link is active or not. |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | 2 | public function isActive() |
|
| 41 | } |