Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
factorybase.php
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Factories
;
4
5
use
Bitrix\Calendar\Core\Base\BaseException
;
6
use
Bitrix\Calendar\Sync\Connection\Connection
;
7
use
Bitrix\Calendar\Sync\Managers\PushManagerInterface
;
8
use
Bitrix\Calendar\Sync\Managers\ServiceInterface
;
9
use
Bitrix\Calendar\Sync\Util\Context
;
10
11
abstract
class
FactoryBase
implements
FactoryInterface
,
ServiceInterface
,
PushFactoryInterface
12
{
18
public
const
SERVICE_NAME
=
''
;
22
protected
Connection
$connection
;
26
protected
?
Context
$context
;
27
31
// abstract public function getVendorSyncService(): VendorSyncService;
32
37
abstract
public
function
getContext
(): ?
Context
;
38
42
public
function
__construct
(
Connection
$connection
,
Context
$context
=
null
)
43
{
44
if
(
$connection
->getOwner() ===
null
)
45
{
46
throw
new
BaseException
(
'the connection must have owner'
);
47
}
48
49
$this->connection =
$connection
;
50
$this->context =
$context
;
51
}
52
56
public
function
getServiceName
(): string
57
{
58
return
static::SERVICE_NAME;
59
}
60
61
public
function
canSubscribeSection
(): bool
62
{
63
return
false
;
64
}
65
66
public
function
canSubscribeConnection
(): bool
67
{
68
return
false
;
69
}
70
71
public
function
getPushManager
(): ?
PushManagerInterface
72
{
73
return
null
;
74
}
75
}
Bitrix\Calendar\Core\Base\BaseException
Definition
baseexception.php:8
Bitrix\Calendar\Core\Mappers\Connection
Definition
connection.php:23
Bitrix\Calendar\Sync\Connection\Connection
Definition
connection.php:13
Bitrix\Calendar\Sync\Factories\FactoryBase
Definition
factorybase.php:12
Bitrix\Calendar\Sync\Factories\FactoryBase\canSubscribeConnection
canSubscribeConnection()
Definition
factorybase.php:66
Bitrix\Calendar\Sync\Factories\FactoryBase\SERVICE_NAME
const SERVICE_NAME
Definition
factorybase.php:18
Bitrix\Calendar\Sync\Factories\FactoryBase\$connection
Connection $connection
Definition
factorybase.php:22
Bitrix\Calendar\Sync\Factories\FactoryBase\getServiceName
getServiceName()
Definition
factorybase.php:56
Bitrix\Calendar\Sync\Factories\FactoryBase\getContext
getContext()
Bitrix\Calendar\Sync\Factories\FactoryBase\getPushManager
getPushManager()
Definition
factorybase.php:71
Bitrix\Calendar\Sync\Factories\FactoryBase\canSubscribeSection
canSubscribeSection()
Definition
factorybase.php:61
Bitrix\Calendar\Sync\Factories\FactoryBase\__construct
__construct(Connection $connection, Context $context=null)
Definition
factorybase.php:42
Bitrix\Calendar\Sync\Factories\FactoryBase\$context
Context $context
Definition
factorybase.php:26
Bitrix\Calendar\Sync\Util\Context
Definition
context.php:18
Bitrix\Calendar\Sync\Factories\FactoryInterface
Definition
factoryinterface.php:17
Bitrix\Calendar\Sync\Factories\PushFactoryInterface
Definition
pushfactoryinterface.php:8
Bitrix\Calendar\Sync\Managers\PushManagerInterface
Definition
pushmanagerinterface.php:11
Bitrix\Calendar\Sync\Managers\ServiceInterface
Definition
serviceinterface.php:7
Bitrix\Calendar\Sync\Factories
Definition
eventconnectionfactory.php:3
modules
calendar
lib
sync
factories
factorybase.php
Создано системой
1.10.0