private function getConversionMap()
    {
        $conversion_maps = array(
            $this->speed_conversion_map,
            $this->distance_conversion_map,
            $this->pressure_conversion_map,
        );

        foreach ($conversion_maps as $map) {
            if (array_key_exists($this->unit, $map)) {
                return $map;
            }
        }

        throw new \Exception('Trying to convert unsupported values');
    }
private function getConversionMap()
    {
        $conversion_maps = array(
            $this->speed_conversion_map,
            $this->distance_conversion_map,
            $this->pressure_conversion_map,
        );

        foreach ($conversion_maps as $map) {
            if (array_key_exists($this->unit, $map)) {
                return $map;
            }
        }

        throw new \Exception('Trying to convert unsupported values');
    }
private function getConversionMap ( ) { $ conversion_maps = array ( $ this -> speed_conversion_map , $ this -> distance_conversion_map , $ this -> pressure_conversion_map , ) ; foreach ( $ conversion_maps as $ map ) { if ( array_key_exists ( $ this -> unit , $ map ) ) { return $ map ; } } throw new \ Exception ( 'Trying to convert unsupported values' ) ; }
Returns conversion map based on original METAR unit.

@return array Returns conversion map based on unit of original METAR

@throws \Exception Throws exception of there's no conversion map for original unit (i.e. for degrees)
Returns conversion map based on original METAR unit .