protected function performRequest(string $uri)
    {
        $httpResponse = $this->client->get($uri);
        Assert::eq($httpResponse->getStatusCode(), 200, 'Request failed.');

        $content = $httpResponse->getBody()->getContents();
        $xml = simplexml_load_string($content);

        $this->exceptionOnError($xml);

        return $this->responseFactory->getResponse($xml);
    }
protected function performRequest(string $uri)
    {
        $httpResponse = $this->client->get($uri);
        Assert::eq($httpResponse->getStatusCode(), 200, 'Request failed.');

        $content = $httpResponse->getBody()->getContents();
        $xml = simplexml_load_string($content);

        $this->exceptionOnError($xml);

        return $this->responseFactory->getResponse($xml);
    }
protected function performRequest ( string $ uri ) { $ httpResponse = $ this -> client -> get ( $ uri ) ; Assert :: eq ( $ httpResponse -> getStatusCode ( ) , 200 , 'Request failed.' ) ; $ content = $ httpResponse -> getBody ( ) -> getContents ( ) ; $ xml = simplexml_load_string ( $ content ) ; $ this -> exceptionOnError ( $ xml ) ; return $ this -> responseFactory -> getResponse ( $ xml ) ; }
Performs a request to the provided URI, and returns the appropriate response object, based on the content of the
HTTP response.

@param string $uri

@return mixed
Performs a request to the provided URI and returns the appropriate response object based on the content of the HTTP response .