1 | <?php |
||
22 | class MenuSubsection extends MenuItem |
||
23 | { |
||
24 | /** @var bool $default Is this the default subaction - if not set for any will default to first... */ |
||
25 | protected $default = false; |
||
26 | |||
27 | /** @var string[] $active Set the button active for other subsections. */ |
||
28 | protected $active = []; |
||
29 | |||
30 | /** |
||
31 | * @param array $arr |
||
32 | * |
||
33 | * @return MenuSubsection |
||
34 | */ |
||
35 | 41 | protected function buildMoreFromArray(array $arr): MenuSubsection |
|
43 | |||
44 | /** |
||
45 | * @return boolean |
||
46 | */ |
||
47 | 6 | public function isDefault(): bool |
|
51 | |||
52 | /** |
||
53 | * @param boolean $default |
||
54 | * |
||
55 | * @return MenuSubsection |
||
56 | */ |
||
57 | 41 | public function setDefault(bool $default): MenuSubsection |
|
63 | |||
64 | /** |
||
65 | * @return string[] |
||
66 | */ |
||
67 | 6 | public function getActive(): array |
|
71 | |||
72 | /** |
||
73 | * @param string[] $active |
||
74 | * |
||
75 | * @return MenuSubsection |
||
76 | */ |
||
77 | 41 | public function setActive(array $active): MenuSubsection |
|
83 | } |
||
84 |