| Total Complexity | 8 | 
| Total Lines | 26 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 16 | class Passing implements Interfaces\ICodecs | ||
| 17 | { | ||
| 18 | protected Interfaces\INumbers $pos; | ||
| 19 | protected Interfaces\IFormatted $out; | ||
| 20 | |||
| 21 | 8 | public function __construct(?Interfaces\INumbers $position = null, ?Interfaces\IFormatted $output = null) | |
| 22 |     { | ||
| 23 | 8 | $this->pos = $position ?: new Support\Position(); | |
| 24 | 8 | $this->out = $output ?: new Support\DegreesObject(); | |
| 25 | 8 | } | |
| 26 | |||
| 27 | 4 | public function fromLonLat(Interfaces\INumbers $position, array $params): Interfaces\IFormatted | |
| 28 |     { | ||
| 29 | 4 | return (clone $this->out)->setData( | |
| 30 | 4 | $position->getLongitude(), | |
| 31 | 4 | $position->getLatitude(), | |
| 32 | 4 | $position->getAltitude(), | |
| 33 | ); | ||
| 34 | } | ||
| 35 | |||
| 36 | 4 | public function toLonLat(Interfaces\IFormatted $source, array $params): Interfaces\INumbers | |
| 42 | ); | ||
| 43 | } | ||
| 44 | } | ||
| 45 |