Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function __construct($menuId, $locale, $menuItemId, $menuItemParentId = null) |
||
25 | { |
||
26 | if (null === $menuId) { |
||
27 | throw new \InvalidArgumentException('The menu id cannot be null'); |
||
28 | } |
||
29 | if (null === $locale) { |
||
30 | throw new \InvalidArgumentException('The locale cannot be null'); |
||
31 | } |
||
32 | if (null === $menuItemId) { |
||
33 | throw new \InvalidArgumentException('The menu item id cannot be null'); |
||
34 | } |
||
35 | $this->menuId = $menuId; |
||
36 | $this->locale = $locale; |
||
37 | $this->menuItemId = $menuItemId; |
||
38 | $this->menuItemParentId = $menuItemParentId; |
||
39 | } |
||
40 | |||
61 |