• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/service/scenarios/dealadd.php
  • Класс: BitrixSaleExchangeIntegrationServiceScenariosDealAdd
  • Вызов: DealAdd::resolveClient
protected function resolveClient($userTypeId)
{
	if(UserEntityType::isDefined($userTypeId))
	{
		if($userTypeId == UserEntityType::TYPE_I)
		{
			return new BatchableContact();
		}
		elseif($userTypeId == UserEntityType::TYPE_E)
		{
			return new BatchableCompany();
		}
	}
	throw new BitrixMainNotSupportedException("UserTypeId : '".$userTypeId."' is not supported in current context");
}