public function toArray() {
		if ($this->_array) {
			return $this->_array;
		}
		$root = $this->documentElement;
		if ($root == 'error') {
			return array(
				0 => array(
					'id' => $root->getAttribute('id'),
					'code' => $root->getAttribute('code'),
					'auxCode' => $root->getAttribute('auxCode'),
					'message' => $root->firstChild->nodeValue
				)
			);
		}
		$this->_array = $this->_toArray($root->childNodes);
		return $this->_array;

	}
public function toArray() {
		if ($this->_array) {
			return $this->_array;
		}
		$root = $this->documentElement;
		if ($root == 'error') {
			return array(
				0 => array(
					'id' => $root->getAttribute('id'),
					'code' => $root->getAttribute('code'),
					'auxCode' => $root->getAttribute('auxCode'),
					'message' => $root->firstChild->nodeValue
				)
			);
		}
		$this->_array = $this->_toArray($root->childNodes);
		return $this->_array;

	}
public function toArray ( ) { if ( $ this -> _array ) { return $ this -> _array ; } $ root = $ this -> documentElement ; if ( $ root == 'error' ) { return array ( 0 => array ( 'id' => $ root -> getAttribute ( 'id' ) , 'code' => $ root -> getAttribute ( 'code' ) , 'auxCode' => $ root -> getAttribute ( 'auxCode' ) , 'message' => $ root -> firstChild -> nodeValue ) ) ; } $ this -> _array = $ this -> _toArray ( $ root -> childNodes ) ; return $ this -> _array ; }
Get a nested array representation of the response doc

@return array
Get a nested array representation of the response doc