| Conditions | 6 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 42 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function __construct(?MapInterface $map, ?StarSystemMapInterface $sysMap) |
||
| 18 | { |
||
| 19 | if ( |
||
| 20 | $map === null && $sysMap === null |
||
|
|
|||
| 21 | || $map !== null && $sysMap !== null |
||
| 22 | ) { |
||
| 23 | throw new InvalidArgumentException('Either map or systemMap has to be filled'); |
||
| 24 | } |
||
| 25 | |||
| 26 | $this->location = $map !== null ? $map : $sysMap; |
||
| 27 | } |
||
| 53 |