Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
entityfactory.php
1
<?php
2
3
namespace
Bitrix\Im\Call\Integration
;
4
5
use
Bitrix\Im\Call\Call
;
6
use
Bitrix\Main\ArgumentException
;
7
8
class
EntityFactory
9
{
19
public
static
function
createEntity
(
Call
$call, $entityType, $entityId)
20
{
21
if
($entityType ===
EntityType::CHAT
)
22
{
23
return
new
Chat
($call, $entityId);
24
}
25
26
throw
new
ArgumentException
(
"Unknown entity type: "
. $entityType);
27
}
28
}
Bitrix\Im\Call\Call
Definition
call.php:22
Bitrix\Im\Call\Integration\Chat
Definition
chat.php:17
Bitrix\Im\Call\Integration\EntityFactory
Definition
entityfactory.php:9
Bitrix\Im\Call\Integration\EntityFactory\createEntity
static createEntity(Call $call, $entityType, $entityId)
Definition
entityfactory.php:19
Bitrix\Im\Call\Integration\EntityType\CHAT
const CHAT
Definition
entitytype.php:12
Bitrix\Main\ArgumentException
Definition
exception.php:34
Bitrix\Im\Call\Integration
Definition
abstractentity.php:3
modules
im
lib
call
integration
entityfactory.php
Создано системой
1.10.0