Conditions | 5 |
Paths | 5 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function __construct($menuId, $locale, $menuItemLabel, $menuItemUrl, $menuItemParentId = null) |
||
26 | { |
||
27 | if (null === $menuId) { |
||
28 | throw new \InvalidArgumentException('The menu id cannot be null'); |
||
29 | } |
||
30 | if (null === $locale) { |
||
31 | throw new \InvalidArgumentException('The locale cannot be null'); |
||
32 | } |
||
33 | if (null === $menuItemLabel) { |
||
34 | throw new \InvalidArgumentException('The menu item label cannot be null'); |
||
35 | } |
||
36 | if (null === $menuItemUrl) { |
||
37 | throw new \InvalidArgumentException('The menu item url cannot be null'); |
||
38 | } |
||
39 | $this->menuId = $menuId; |
||
40 | $this->locale = $locale; |
||
41 | $this->menuItemLabel = $menuItemLabel; |
||
42 | $this->menuItemUrl = $menuItemUrl; |
||
43 | $this->menuItemParentId = $menuItemParentId; |
||
44 | } |
||
45 | |||
71 |