1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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\Integration\EntityFactory
Определения
entityfactory.php:9
Bitrix\Im\Call\Integration\EntityFactory\createEntity
static createEntity(Call $call, $entityType, $entityId)
Определения
entityfactory.php:19
Bitrix\Im\Call\Integration\EntityType\CHAT
const CHAT
Определения
entitytype.php:12
Bitrix\Main\ArgumentException
Определения
ArgumentException.php:9
Bitrix\Im\Call
Определения
auth.php:9
Bitrix\Im\V2\Chat
$entityId
$entityId
Определения
payment.php:4
bitrix
modules
im
lib
call
integration
entityfactory.php
Создано системой
1.14.0