DuplicateChecker::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DuplicateChecker
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicatechecker.php
  • Класс: Bitrix\Crm\Integrity\DuplicateChecker
  • Вызов: DuplicateChecker::__construct
protected function __construct($entityTypeID)
{
	if(!is_int($entityTypeID))
	{
		throw new Main\ArgumentTypeException('entityTypeID', 'integer');
	}

	if(!\CCrmOwnerType::IsDefined($entityTypeID))
	{
		throw new Main\NotSupportedException("Entity ID: '{$entityTypeID}' is not supported in current context");
	}
	$this->entityTypeID = $entityTypeID;
}

Добавить комментарий