Total Complexity | 9 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class MenuConfiguration extends Configuration |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $menuName; |
||
16 | |||
17 | /** |
||
18 | * MenuConfiguration constructor. |
||
19 | */ |
||
20 | public function __construct(string $menuName) |
||
21 | { |
||
22 | parent::__construct(); |
||
23 | |||
24 | $this->menuName = $menuName; |
||
25 | } |
||
26 | |||
27 | public function configureOptions(OptionsResolver $resolver) |
||
52 | }) |
||
53 | ; |
||
54 | } |
||
55 | |||
56 | public function all() |
||
57 | { |
||
58 | $values = parent::all(); |
||
59 | |||
60 | /** @var MenuItemConfiguration $value */ |
||
61 | foreach ($values['children'] as $name => $value) { |
||
62 | $values['children'][$name] = $value->all(); |
||
63 | } |
||
64 | |||
65 | return $values; |
||
66 | } |
||
67 | |||
68 | public function getMenuName(): string |
||
69 | { |
||
70 | return $this->menuName; |
||
71 | } |
||
72 | |||
73 | public function getRoute(): string |
||
76 | } |
||
77 | } |
||
78 |