public function getBody() { $result = $this->getRootXml(); $head = $this->getBasicHead(); XmlUtils::sxml_append($result, $head->asElement()); $content = new Internals\Content(); $content->setCustomer($this->_customer); $content->setShoppingBasket($this->_shoppingBasket); $content->setPayment($this->_payment); XmlUtils::sxml_append($result, $content->asElement()); return $result->asXML(); }
public function getBody() { $result = $this->getRootXml(); $head = $this->getBasicHead(); XmlUtils::sxml_append($result, $head->asElement()); $content = new Internals\Content(); if (isset($this->_invoicing)) { $content->setInvoicing($this->_invoicing); } $content->setShoppingBasket($this->_shoppingBasket); XmlUtils::sxml_append($result, $content->asElement()); return $result->asXML(); }