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\UnitOfMeasure\Length;
class Metre extends Length
{
private float $length;
public function __construct(float $length)
$this->length = $length;
}
public function asMetres(): self
return $this;
public function getValue(): float
return $this->length;
public function getUnitName(): string
return 'metre';
public static function convert(Length $length, string $targetSRID): Length
if ($targetSRID === self::EPSG_METRE) {
return $length;
return parent::convert($length, $targetSRID);