EntityFactory::createEntity

  1. Bitrix24 API (v. 23.675.0)
  2. im
  3. EntityFactory
  4. createEntity
  • Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/integration/entityfactory.php
  • Класс: BitrixImCallIntegrationEntityFactory
  • Вызов: EntityFactory::createEntity
static function createEntity(Call $call, $entityType, $entityId)
{
	if($entityType === EntityType::CHAT)
	{
		return new Chat($call, $entityId);
	}

	throw new ArgumentException("Unknown entity type: " . $entityType);
}

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