• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/rest/cmd/batch/itemcollection.php
  • Класс: BitrixSaleExchangeIntegrationRestCmdBatchItemCollection
  • Вызов: ItemCollection::toArray
public function toArray()
{
	$result = [];
	if(count($this->collection)>0)
	{
		/**
		 * @var Item $item
		 */
		foreach ($this->collection as $index=>$item)
		{
			$result[$index] = $item->getCmd()->build();
		}
	}
	return $result;
}