azure-storage-common/src/Common/Internal/Serialization/MessageSerializer.php
private static function serializeResponse($response)
    {
        $headers = $response->getHeaders();
        $version = $response->getProtocolVersion();
        $status  = $response->getStatusCode();
        $reason  = $response->getReasonPhrase();

        $resultString = "Response:\n";
        $resultString .= "Status Code: {$status}\nReason: {$reason}\n";
        $resultString .= "HTTP Version: {$version}\n";
        $resultString .= self::serializeHeaders($headers);

        return $resultString;
    }
private static function serializeResponse($response)
    {
        $headers = $response->getHeaders();
        $version = $response->getProtocolVersion();
        $status  = $response->getStatusCode();
        $reason  = $response->getReasonPhrase();

        $resultString = "Response:\n";
        $resultString .= "Status Code: {$status}\nReason: {$reason}\n";
        $resultString .= "HTTP Version: {$version}\n";
        $resultString .= self::serializeHeaders($headers);

        return $resultString;
    }
Serialize the response type that implemented the following methods:
getHeaders()
getProtocolVersion()
getStatusCode()
getReasonPhrase()

@param  object $response The response to be serialized

@return string