| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class GeocentricValue |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Length |
||
| 22 | */ |
||
| 23 | private $x; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Length |
||
| 27 | */ |
||
| 28 | private $y; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Length |
||
| 32 | */ |
||
| 33 | private $z; |
||
| 34 | |||
| 35 | 11 | public function __construct(Length $x, Length $y, Length $z) |
|
| 40 | 11 | } |
|
| 41 | |||
| 42 | 11 | public function getX(): Metre |
|
| 43 | { |
||
| 44 | 11 | return $this->x->asMetres(); |
|
| 45 | } |
||
| 46 | |||
| 47 | 11 | public function getY(): Metre |
|
| 48 | { |
||
| 49 | 11 | return $this->y->asMetres(); |
|
| 50 | } |
||
| 51 | |||
| 52 | 11 | public function getZ(): Metre |
|
| 55 | } |
||
| 56 | } |
||
| 57 |