for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PHPCoord.
*
* @author Doug Wright
*/
declare(strict_types=1);
namespace PHPCoord\Coordinate\ReferenceSystem;
class Compound extends CoordinateReferenceSystem
{
/** @var CoordinateReferenceSystem */
private $horizontal;
private $vertical;
* Compound constructor.
* @param DynamicGeocentric|DynamicGeographic2D|DynamicGeographic3D|Geocentric|Geographic2D|Geographic3D|Projected $horizontal
* @param DynamicVertical|Vertical $vertical
public function __construct(
int $epsgCode,
CoordinateReferenceSystem $horizontal,
CoordinateReferenceSystem $vertical
) {
$this->epsgCode = $epsgCode;
$this->horizontal = $horizontal;
$this->vertical = $vertical;
}
public function getEpsgCode(): int
return $this->epsgCode;
public function getHorizontal(): CoordinateReferenceSystem
return $this->horizontal;
public function getVertical(): CoordinateReferenceSystem
return $this->vertical;