Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/catalog/lib/product/store/batchbalancer/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/catalog/lib/product/store/batchbalancer/inventorytree.php

<?php
namespace Bitrix\Catalog\Product\Store\BatchBalancer;

use Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem;
use Bitrix\Main\Result;
use Bitrix\Catalog\Product\Store\BatchBalancer\Entity\ElementBatchItem;

/**
 * Class InventoryTree
 *
 * @package Bitrix\Catalog\Product\Store\BatchBalancer
 */
abstract class InventoryTree extends \ArrayObject
{
	public function save(): Result
	{
		$result = new Result();
		foreach ($this->getIterator() as $item)
		{
			$item->save();
		}

		return $result;
	}
}