| Conditions | 4 |
| Paths | 8 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 20 | public function setData(?float $longitude = 0.0, ?float $latitude = 0.0, ?float $altitude = 0.0): INumbers |
|
| 24 | { |
||
| 25 | 20 | $this->longitude = is_null($longitude) ? $this->longitude : $longitude; |
|
| 26 | 20 | $this->latitude = is_null($latitude) ? $this->latitude : $latitude; |
|
| 27 | 20 | $this->altitude = is_null($altitude) ? $this->altitude : $altitude; |
|
| 28 | 20 | return $this; |
|
| 29 | } |
||
| 46 |