Factory::create

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Factory
  4. create
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/tracking/channel/factory.php
  • Класс: Bitrix\Crm\Tracking\Channel\Factory
  • Вызов: Factory::create
static function create($code, $value = null)
{
	$class = self::getClass($code);
	if (!$class)
	{
		throw new NotImplementedException("Channel with code `$code` not implemented.");
	}

	return new $class($value);
}

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