Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class MenuItemElement extends Element implements MenuItemInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | public static string $tag = 'a'; |
||
14 | |||
15 | /** |
||
16 | * @param bool $active |
||
17 | * |
||
18 | * @return static |
||
19 | */ |
||
20 | public function active(bool $active): static |
||
21 | { |
||
22 | $active && $this->addClass('active'); |
||
23 | return $this; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param bool $disabled |
||
28 | * |
||
29 | * @return static |
||
30 | */ |
||
31 | public function disabled(bool $disabled): static |
||
35 | } |
||
36 | } |
||
37 |