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