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