src/Exchangers/OpenExchangeRatesExchanger.php
public function get($code)
    {
        $rates = $this->getRates();

        $code = strtoupper($code);

        if (empty($rates[$code])) {
            throw new Exception;
        }

        return $rates[$code];
    }
public function get($code)
    {
        $rates = $this->getRates();

        $code = strtoupper($code);

        if (empty($rates[$code])) {
            throw new Exception;
        }

        return $rates[$code];
    }
public function get ( $ code ) { $ rates = $ this -> getRates ( ) ; $ code = strtoupper ( $ code ) ; if ( empty ( $ rates [ $ code ] ) ) { throw new Exception ; } return $ rates [ $ code ] ; }
Return the exchange rate for the provided currency code.

@param  string  $code
@return float
@throws \Exception
Return the exchange rate for the provided currency code .