| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class VerticalPoint extends Point |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Height. |
||
| 24 | * @var Length |
||
| 25 | */ |
||
| 26 | protected $height; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Coordinate reference system. |
||
| 30 | * @var CoordinateReferenceSystem |
||
| 31 | */ |
||
| 32 | protected $crs; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Constructor. |
||
| 36 | * @param Length $height refer to CRS for preferred unit of measure, but any length unit accepted |
||
| 37 | */ |
||
| 38 | public function __construct(Length $height, Vertical $crs) |
||
| 39 | { |
||
| 40 | $this->height = UnitOfMeasureFactory::convertLength($height, $crs->getCoordinateSystem()->getAxes()[1]->getUnitOfMeasureId()); |
||
| 41 | $this->crs = $crs; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getHeight(): Length |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getCRS(): CoordinateReferenceSystem |
||
| 52 | } |
||
| 53 | |||
| 54 | public function __toString(): string |
||
| 59 |