| Conditions | 6 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 19 | protected function checkArguments($x, $y, array $elevationOnBoundingBox) |
|
| 25 | { |
||
| 26 | 19 | if (4 !== count($elevationOnBoundingBox)) { |
|
| 27 | 4 | throw new InvalidArgumentException('Array with elevation on bounding box must have four values.'); |
|
| 28 | } |
||
| 29 | |||
| 30 | 15 | if ($x < 0.0 || 1.0 < $x) { |
|
| 31 | 2 | throw new InvalidArgumentException('$x must be within [0.0, 1.0]'); |
|
| 32 | } |
||
| 33 | |||
| 34 | 13 | if ($y < 0.0 || 1.0 < $y) { |
|
| 35 | 2 | throw new InvalidArgumentException('$y must be within [0.0, 1.0]'); |
|
| 36 | } |
||
| 37 | 11 | } |
|
| 38 | } |
||
| 39 |