1 | <?php |
||
4 | class NavBar |
||
5 | { |
||
6 | /** |
||
7 | * @var string[] |
||
8 | */ |
||
9 | private $current = []; |
||
10 | |||
11 | /** |
||
12 | * @var string[] |
||
13 | */ |
||
14 | private $items; |
||
15 | |||
16 | public $onItem = ' active'; |
||
17 | |||
18 | public $offItem = ''; |
||
19 | |||
20 | /** |
||
21 | * NavBar constructor. |
||
22 | * |
||
23 | * @param string $menu1 |
||
24 | */ |
||
25 | public function __construct($menu1) |
||
29 | |||
30 | /** |
||
31 | * @param string $menu1 |
||
32 | * @return NavBar |
||
33 | */ |
||
34 | public function m($menu1) |
||
41 | |||
42 | /** |
||
43 | * @param string $string |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function on($string) |
||
51 | |||
52 | /** |
||
53 | * @param string $string |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function off($string) |
||
61 | |||
62 | /** |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function is() |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function __toString() |
||
86 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.