Conditions | 4 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | 4 | public function toLonLat(Interfaces\IFormatted $source): Interfaces\INumbers |
|
39 | { |
||
40 | 4 | return (clone $this->pos)->setData( |
|
41 | 4 | is_null($source->getLongitude()) ? null : floatval(strval($source->getLongitude())), |
|
42 | 4 | is_null($source->getLatitude()) ? null : floatval(strval($source->getLatitude())), |
|
43 | 4 | is_null($source->getAltitude()) ? null : floatval(strval($source->getAltitude())) |
|
44 | ); |
||
47 |