protected function parseResponse($response)
    {
        if ($response instanceof ResponseInterface) {
            $response = $response->getBody();
        }

        return new Collection((array) XML::parse($response));
    }
protected function parseResponse($response)
    {
        if ($response instanceof ResponseInterface) {
            $response = $response->getBody();
        }

        return new Collection((array) XML::parse($response));
    }
protected function parseResponse ( $ response ) { if ( $ response instanceof ResponseInterface ) { $ response = $ response -> getBody ( ) ; } return new Collection ( ( array ) XML :: parse ( $ response ) ) ; }
Parse Response XML to array.

@param \Psr\Http\Message\ResponseInterface|string $response

@return \EntWeChat\Support\Collection
Parse Response XML to array .