| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct($locale, $name, $code, array $items = [], $menuId = null) |
||
| 30 | { |
||
| 31 | if (null === $locale) { |
||
| 32 | throw new InvalidArgumentException('The locale cannot be null'); |
||
| 33 | } |
||
| 34 | if (empty($name)) { |
||
| 35 | throw new EmptyMenuNameException(); |
||
| 36 | } |
||
| 37 | if (empty($code)) { |
||
| 38 | throw new EmptyMenuCodeException(); |
||
| 39 | } |
||
| 40 | $this->menuId = $menuId; |
||
| 41 | $this->locale = $locale; |
||
| 42 | $this->code = $code; |
||
| 43 | $this->name = $name; |
||
| 44 | $this->items = $items; |
||
| 45 | } |
||
| 46 | |||
| 72 |