• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/basketitem.php
  • Класс: BitrixSaleBasketItem
  • Вызов: BasketItem::getReserveQuantityCollection
public function getReserveQuantityCollection()
{
	if (!$this->isReservableItem())
	{
		return null;
	}

	if ($this->reserveQuantityCollection === null)
	{
		$registry = Registry::getInstance(static::getRegistryType());

		/** @var ReserveQuantityCollection $reserveCollectionClassName */
		$reserveCollectionClassName = $registry->getReserveCollectionClassName();

		$this->reserveQuantityCollection = $reserveCollectionClassName::load($this);
	}

	return $this->reserveQuantityCollection;
}