src/Model/Service/InventoryXmlSerializer.php
public function processDomainGSheetObjects(array $inventories)
    {
        $dom = new DomDocument("1.0", "UTF-8");
        $products = $dom->createElement('Products');

        /** @var Inventory $inventory */
        foreach ($inventories as $inventory) {
            $product = $dom->createElement('Product');
            $inventoryXmlElement = $this->buildInventoryElement($dom, $inventory);
            $product->appendChild($inventoryXmlElement);
            $products->appendChild($product);
        }

        $dom->appendChild($products);

        return $this->outputFormattedXml($dom);
    }
public function processDomainGSheetObjects(array $inventories)
    {
        $dom = new DomDocument("1.0", "UTF-8");
        $products = $dom->createElement('Products');

        /** @var Inventory $inventory */
        foreach ($inventories as $inventory) {
            $product = $dom->createElement('Product');
            $inventoryXmlElement = $this->buildInventoryElement($dom, $inventory);
            $product->appendChild($inventoryXmlElement);
            $products->appendChild($product);
        }

        $dom->appendChild($products);

        return $this->outputFormattedXml($dom);
    }
public function processDomainGSheetObjects ( array $ inventories ) { $ dom = new DomDocument ( "1.0" , "UTF-8" ) ; $ products = $ dom -> createElement ( 'Products' ) ; /** @var Inventory $inventory */ foreach ( $ inventories as $ inventory ) { $ product = $ dom -> createElement ( 'Product' ) ; $ inventoryXmlElement = $ this -> buildInventoryElement ( $ dom , $ inventory ) ; $ product -> appendChild ( $ inventoryXmlElement ) ; $ products -> appendChild ( $ product ) ; } $ dom -> appendChild ( $ products ) ; return $ this -> outputFormattedXml ( $ dom ) ; }
Satisfies interface method.
Invoked in XmlSquad\Library\Application\Service\GoogleDriveProcessService
Satisfies interface method . Invoked in XmlSquad \ Library \ Application \ Service \ GoogleDriveProcessService