From 7ef3029e008d868caa5fdcec9cb0be74fa941f6f Mon Sep 17 00:00:00 2001 From: apiotrowski Date: Tue, 13 Nov 2018 23:48:58 +0100 Subject: [PATCH] Add to Length unit converter new transformation --- src/Unit/LengthUnit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Unit/LengthUnit.php b/src/Unit/LengthUnit.php index a75bde1..02ee83a 100644 --- a/src/Unit/LengthUnit.php +++ b/src/Unit/LengthUnit.php @@ -15,6 +15,7 @@ class LengthUnit extends AbstractUnit public static $unitList = [ self::KILOMETER, + self::MILE, self::METER, self::CENTIMETRE, self::INCH, @@ -22,6 +23,8 @@ class LengthUnit extends AbstractUnit ]; protected static $convertUnitMap = [ + self::KILOMETER => '0.00001', + self::MILE => '0.0000062137', self::METER => '0.01', self::CENTIMETRE => '1', self::INCH => '0.393',