• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/basketitem.php
  • Класс: BitrixSaleBasketItem
  • Вызов: BasketItem::createBundleCollection
public function createBundleCollection()
{
	if ($this->bundleCollection === null)
	{
		$registry = Registry::getInstance(static::getRegistryType());
		/** @var BundleCollection $bundleClassName */
		$bundleClassName = $registry->getBundleCollectionClassName();

		$this->bundleCollection = $bundleClassName::createBundleCollectionObject();
		$this->bundleCollection->setParentBasketItem($this);

		$this->setField('TYPE', static::TYPE_SET);
	}

	return $this->bundleCollection;
}