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;
use PHPCoord\CoordinateReferenceSystem\CoordinateReferenceSystem;
use PHPCoord\CoordinateSystem\Axis;
abstract class Point implements \Stringable
{
abstract public function getCRS(): CoordinateReferenceSystem;
protected function getAxisByName(string $name): Axis
foreach ($this->getCRS()->getCoordinateSystem()->getAxes() as $axis) {
if ($axis->getName() === $name) {
return $axis;
}