diff --git a/Convertor.php b/Convertor.php index dd2e446..42e7d08 100644 --- a/Convertor.php +++ b/Convertor.php @@ -1,5 +1,13 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ class Convertor { @@ -9,7 +17,12 @@ class Convertor //array to hold unit conversion functions private $units = array(); + + /** + * setup units conversion array + */ function defineUnits(){ + $this->units = array( ///////Units Of Length/////// "m"=>array("base"=>"m", "conversion"=>1), //meter - base unit for distance