• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/onec/importcriterion.php
  • Класс: BitrixSaleExchangeOneCCriterionPayment
  • Вызов: CriterionPayment::setEntity
public function setEntity($entity = null)
{
	if(!empty($entity) && !($entity instanceof SalePayment))
		throw new MainArgumentException("Entity must be instanceof Payment");

	parent::setEntity($entity);
}