| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class GeographicValue |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Angle |
||
| 24 | */ |
||
| 25 | private $latitude; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Angle |
||
| 29 | */ |
||
| 30 | private $longitude; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var Length |
||
| 34 | */ |
||
| 35 | private $height; |
||
| 36 | |||
| 37 | 11 | public function __construct(Angle $latitude, Angle $longitude, ?Length $height) |
|
| 42 | 11 | } |
|
| 43 | |||
| 44 | 11 | public function getLatitude(): Radian |
|
| 45 | { |
||
| 46 | 11 | return $this->latitude->asRadians(); |
|
| 47 | } |
||
| 48 | |||
| 49 | 11 | public function getLongitude(): Radian |
|
| 52 | } |
||
| 53 | |||
| 54 | 11 | public function getHeight(): Metre |
|
| 59 |