Skip to content

Commit

Permalink
Add to Length unit converter new transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
apiotrowski committed Nov 13, 2018
1 parent 041f528 commit 7ef3029
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Unit/LengthUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ class LengthUnit extends AbstractUnit

public static $unitList = [
self::KILOMETER,
self::MILE,
self::METER,
self::CENTIMETRE,
self::INCH,
self::FOOT
];

protected static $convertUnitMap = [
self::KILOMETER => '0.00001',
self::MILE => '0.0000062137',
self::METER => '0.01',
self::CENTIMETRE => '1',
self::INCH => '0.393',
Expand Down

0 comments on commit 7ef3029

Please sign in to comment.