| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Metre extends Length |
||
| 12 | { |
||
| 13 | private float $length; |
||
| 14 | |||
| 15 | 2762 | public function __construct(float $length) |
|
| 16 | { |
||
| 17 | 2762 | $this->length = $length; |
|
| 18 | 2762 | } |
|
| 19 | |||
| 20 | 1699 | public function asMetres(): self |
|
| 21 | { |
||
| 22 | 1699 | return $this; |
|
| 23 | } |
||
| 24 | |||
| 25 | 2617 | public function getValue(): float |
|
| 26 | { |
||
| 27 | 2617 | return $this->length; |
|
| 28 | } |
||
| 29 | |||
| 30 | 27 | public function getUnitName(): string |
|
| 33 | } |
||
| 34 | |||
| 35 | 1742 | public static function convert(Length $length, string $targetSRID): Length |
|
| 36 | { |
||
| 44 |