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 Fathom extends Length
{
private float $length;
public function __construct(float $length)
$this->length = $length;
}
public function asMetres(): Metre
return new Metre($this->length * 1.8288);
public function getValue(): float
return $this->length;
public function getUnitName(): string
return 'fathom';