Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
11 | 10 | public function __construct( float $precisionInDegrees ) { |
|
12 | 10 | if ( $precisionInDegrees < -360 || $precisionInDegrees > 360 ) { |
|
13 | 2 | throw new \InvalidArgumentException( '$precision needs to be between -360 and 360' ); |
|
14 | } |
||
15 | |||
16 | 8 | $this->precision = $precisionInDegrees; |
|
17 | 8 | } |
|
18 | |||
24 |