private function validUnitType($unitType) {
        if(!isset($this->unitTypes[$unitType])){
            throw new \InvalidArgumentException(sprintf('The Unit Type "%s" is not register on Unit Converter(%s)',$unitType,  implode(array_keys($this->unitTypes),',')));
        }
        return true;
    }
private function validUnitType($unitType) {
        if(!isset($this->unitTypes[$unitType])){
            throw new \InvalidArgumentException(sprintf('The Unit Type "%s" is not register on Unit Converter(%s)',$unitType,  implode(array_keys($this->unitTypes),',')));
        }
        return true;
    }
private function validUnitType ( $ unitType ) { if ( ! isset ( $ this -> unitTypes [ $ unitType ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The Unit Type "%s" is not register on Unit Converter(%s)' , $ unitType , implode ( array_keys ( $ this -> unitTypes ) , ',' ) ) ) ; } return true ; }
Valida un tipo de unidad

@param $unitType Tipo de unidad a probar
Valida un tipo de unidad