• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/conversion/entityconversionmapper.php
  • Класс: Bitrix\Crm\Conversion\EntityConversionMapper
  • Вызов: EntityConversionMapper::__construct
public function __construct($srcEntityTypeID, $srcEntityID)
{
	if(!is_int($srcEntityTypeID))
	{
		$srcEntityTypeID = (int)$srcEntityTypeID;
	}

	if(!\CCrmOwnerType::IsDefined($srcEntityTypeID))
	{
		throw new Main\ArgumentOutOfRangeException('srcEntityTypeID',
			\CCrmOwnerType::FirstOwnerType,
			\CCrmOwnerType::LastOwnerType
		);
	}
	$this->srcEntityTypeID = $srcEntityTypeID;

	if(!is_int($srcEntityID))
	{
		$srcEntityID = (int)$srcEntityID;
	}

	if($srcEntityID <= 0)
	{
		throw new Main\ArgumentException('Owner ID must be greater than zero.', 'srcEntityID');
	}
	$this->srcEntityID = $srcEntityID;
}