private function collectResponse(GuzzleRequestInterface $request)
    {
        $response = $request->getResponse();
        $body = $response->getBody(true);

        return array(
            'statusCode'   => $response->getStatusCode(),
            'reasonPhrase' => $response->getReasonPhrase(),
            'headers'      => $response->getHeaders(),
            'body'         => $body
        );
    }
private function collectResponse(GuzzleRequestInterface $request)
    {
        $response = $request->getResponse();
        $body = $response->getBody(true);

        return array(
            'statusCode'   => $response->getStatusCode(),
            'reasonPhrase' => $response->getReasonPhrase(),
            'headers'      => $response->getHeaders(),
            'body'         => $body
        );
    }
private function collectResponse ( GuzzleRequestInterface $ request ) { $ response = $ request -> getResponse ( ) ; $ body = $ response -> getBody ( true ) ; return array ( 'statusCode' => $ response -> getStatusCode ( ) , 'reasonPhrase' => $ response -> getReasonPhrase ( ) , 'headers' => $ response -> getHeaders ( ) , 'body' => $ body ) ; }
Collect & sanitize data about a Guzzle response

@param Guzzle\Http\Message\RequestInterface $request

@return array
Collect & sanitize data about a Guzzle response