| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 17 | public function __construct($latitude, $longitude) |
|
| 37 | { |
||
| 38 | 17 | Assert::notNull($latitude); |
|
| 39 | 17 | Assert::notNull($longitude); |
|
| 40 | |||
| 41 | 17 | $latitude = (float) $latitude; |
|
| 42 | 17 | $longitude = (float) $longitude; |
|
| 43 | |||
| 44 | 17 | Assert::latitude($latitude); |
|
| 45 | 17 | Assert::longitude($longitude); |
|
| 46 | |||
| 47 | 17 | $this->latitude = $latitude; |
|
| 48 | 17 | $this->longitude = $longitude; |
|
| 49 | 17 | } |
|
| 50 | |||
| 81 |