Conditions | 3 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
28 | 12 | public function __construct($config = []) |
|
29 | { |
||
30 | 12 | $this->config = array_merge($this->baseConfig(), $config); |
|
31 | 12 | foreach ($this->getMenuTypes() as $type) { |
|
32 | 11 | $methodName = $type . 'Menu'; |
|
33 | 11 | if (method_exists($this, $methodName)) { |
|
34 | 11 | $this->menus[$type] = $this->{$methodName}(); |
|
35 | } |
||
80 |