public function getResult()
    {
        $url = $this->buildUrl($this->url);

        try {
            $response = $this->makeRequest($url);

            return $this->prepareResponseResult($response);
        }
        // The client needs to know only one exception, no
        // matter what exception is thrown by Guzzle
         catch (TransferException $e) {
            throw new ConnectionException($e->getMessage());
        }
    }
public function getResult()
    {
        $url = $this->buildUrl($this->url);

        try {
            $response = $this->makeRequest($url);

            return $this->prepareResponseResult($response);
        }
        // The client needs to know only one exception, no
        // matter what exception is thrown by Guzzle
         catch (TransferException $e) {
            throw new ConnectionException($e->getMessage());
        }
    }
public function getResult ( ) { $ url = $ this -> buildUrl ( $ this -> url ) ; try { $ response = $ this -> makeRequest ( $ url ) ; return $ this -> prepareResponseResult ( $ response ) ; } // The client needs to know only one exception, no // matter what exception is thrown by Guzzle catch ( TransferException $ e ) { throw new ConnectionException ( $ e -> getMessage ( ) ) ; } }
Makes the request and returns the response
with the rates, as a Result object

@throws ConnectionException if the request is incorrect or times out
@throws ResponseException if the response is malformed
@return Result
Makes the request and returns the response with the rates as a Result object