1 | <?php |
||
14 | class Menu implements MenuContract |
||
15 | { |
||
16 | /** |
||
17 | * @var BuilderContract[] |
||
18 | */ |
||
19 | protected $menuList = []; |
||
20 | |||
21 | /** |
||
22 | * @var Container |
||
23 | */ |
||
24 | protected $container; |
||
25 | |||
26 | /** |
||
27 | * @inheritDoc |
||
28 | */ |
||
29 | 7 | public function __construct(Container $container) |
|
33 | |||
34 | /** |
||
35 | * @inheritDoc |
||
36 | */ |
||
37 | 4 | public function make($name, callable $callback, $type = Builder::UL, $attributes = [], $activeAttributes = []) |
|
51 | |||
52 | /** |
||
53 | * @inheritDoc |
||
54 | */ |
||
55 | 4 | public function get($name) |
|
63 | |||
64 | /** |
||
65 | * @inheritDoc |
||
66 | */ |
||
67 | 1 | public function render($name, $view = null) |
|
71 | |||
72 | /** |
||
73 | * @inheritDoc |
||
74 | */ |
||
75 | 3 | public function has($name) |
|
79 | |||
80 | /** |
||
81 | * @inheritDoc |
||
82 | */ |
||
83 | 1 | public function forget($name) |
|
89 | |||
90 | /** |
||
91 | * @inheritDoc |
||
92 | */ |
||
93 | 1 | public function fromArray($name, array $builder) |
|
107 | |||
108 | /** |
||
109 | * @inheritDoc |
||
110 | */ |
||
111 | 1 | public function toArray($name) |
|
119 | } |