Bridge/Buzz/Response.php
public function toArray()
    {
		$content = $this->getContent();

        if (count($content) < 1) {
            throw new LogicException("Response content is not valid response: \n\n{$this->getContent()}");
        }

		$response = array();
		
		$xml_result = str_replace('&','&amp;', (string)$content);
		$xml_result = $content;
		$xmlElement  = simplexml_load_string($xml_result);				
		
		foreach($xmlElement->attributes() as $key => $value)
		{
			$response[$key] = is_object($value) ? $value->__toString() : $value;
		}

        return $response;
    }
public function toArray()
    {
		$content = $this->getContent();

        if (count($content) < 1) {
            throw new LogicException("Response content is not valid response: \n\n{$this->getContent()}");
        }

		$response = array();
		
		$xml_result = str_replace('&','&amp;', (string)$content);
		$xml_result = $content;
		$xmlElement  = simplexml_load_string($xml_result);				
		
		foreach($xmlElement->attributes() as $key => $value)
		{
			$response[$key] = is_object($value) ? $value->__toString() : $value;
		}

        return $response;
    }
@throws \Payum\Core\Exception\LogicException

@return array