Total Complexity | 9 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Coverage | 82.14% |
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 | 4 | $this->menuName = $menuName; |
|
25 | } |
||
26 | 4 | ||
27 | public function configureOptions(OptionsResolver $resolver) |
||
52 | }) |
||
53 | ; |
||
54 | } |
||
55 | 4 | ||
56 | public function all() |
||
57 | { |
||
58 | $values = parent::all(); |
||
59 | 4 | ||
60 | 4 | /** @var MenuItemConfiguration $value */ |
|
61 | 4 | foreach ($values['children'] as $name => $value) { |
|
62 | $values['children'][$name] = $value->all(); |
||
63 | 4 | } |
|
64 | |||
65 | return $values; |
||
66 | } |
||
67 | |||
68 | 4 | public function getMenuName(): string |
|
69 | { |
||
70 | return $this->menuName; |
||
71 | } |
||
72 | |||
73 | 4 | public function getRoute(): string |
|
76 | } |
||
77 | } |
||
78 |