| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Geocentric extends CoordinateReferenceSystem |
||
| 15 | { |
||
| 16 | public function __construct( |
||
| 17 | int $epsgCode, |
||
| 18 | CoordinateSystem $coordinateSystem, |
||
| 19 | Datum $datum |
||
| 20 | ) { |
||
| 21 | $this->epsgCode = $epsgCode; |
||
| 22 | $this->coordinateSystem = $coordinateSystem; |
||
| 23 | $this->datum = $datum; |
||
| 24 | |||
| 25 | assert(count($coordinateSystem->getAxes()) === 3); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getEpsgCode(): int |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getCoordinateSystem(): CoordinateSystem |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getDatum(): Datum |
||
| 43 |