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 | 17 | public function setData($longitude = '0', $latitude = '0', $altitude = '0'): IFormatted |
|
24 | { |
||
25 | 17 | $this->longitude = is_null($longitude) ? $this->longitude : strval($longitude); |
|
26 | 17 | $this->latitude = is_null($latitude) ? $this->latitude : strval($latitude); |
|
27 | 17 | $this->altitude = is_null($altitude) ? $this->altitude : strval($altitude); |
|
28 | 17 | return $this; |
|
29 | } |
||
46 |