Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
builderconnection.php
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Builders
;
4
5
use
Bitrix\Calendar\Core\Base\Date
;
6
use
Bitrix\Calendar\Core\Builders\Builder
;
7
use
Bitrix\Calendar\Core\Role\Role
;
8
use
Bitrix\Calendar\Sync\Connection\Connection
;
9
use
Bitrix\Calendar\Sync\Vendor\VendorInterface
;
10
11
abstract
class
BuilderConnection
implements
Builder
12
{
16
protected
$data
;
17
18
public
function
__construct
(
$data
)
19
{
20
$this->data =
$data
;
21
}
22
27
public
function
build
():
Connection
28
{
29
return
(
new
Connection
())
30
->
setId
($this->
getId
())
31
->setName($this->
getName
())
32
->setLastSyncTime($this->
getLastSyncTime
())
33
->setVendor($this->
getVendor
())
34
->setDeleted($this->
isDeleted
())
35
->setLastSyncTime($this->
getLastSyncTime
())
36
->setToken($this->
getToken
())
37
->setStatus($this->
getStatus
())
38
->setOwner($this->
getOwner
())
39
->setNextSyncTry($this->
getNextSyncTry
())
40
;
41
}
42
43
abstract
protected
function
getId
(): int;
44
abstract
protected
function
getName
(): string;
45
abstract
protected
function
getLastSyncTime
(): ?
Date
;
46
abstract
protected
function
getToken
(): ?string;
47
abstract
protected
function
getStatus
(): ?string;
48
abstract
protected
function
getVendor
(): ?
VendorInterface
;
49
abstract
protected
function
getOwner
(): ?
Role
;
50
abstract
protected
function
isDeleted
(): bool;
51
abstract
protected
function
getNextSyncTry
(): ?
Date
;
52
}
Bitrix\Calendar\Core\Base\Date
Definition
date.php:10
Bitrix\Calendar\Core\Role\Role
Definition
role.php:8
Bitrix\Calendar\Sync\Builders\BuilderConnection
Definition
builderconnection.php:12
Bitrix\Calendar\Sync\Builders\BuilderConnection\getId
getId()
Bitrix\Calendar\Sync\Builders\BuilderConnection\getVendor
getVendor()
Bitrix\Calendar\Sync\Builders\BuilderConnection\getToken
getToken()
Bitrix\Calendar\Sync\Builders\BuilderConnection\getLastSyncTime
getLastSyncTime()
Bitrix\Calendar\Sync\Builders\BuilderConnection\build
build()
Definition
builderconnection.php:27
Bitrix\Calendar\Sync\Builders\BuilderConnection\getName
getName()
Bitrix\Calendar\Sync\Builders\BuilderConnection\getNextSyncTry
getNextSyncTry()
Bitrix\Calendar\Sync\Builders\BuilderConnection\$data
$data
Definition
builderconnection.php:16
Bitrix\Calendar\Sync\Builders\BuilderConnection\getStatus
getStatus()
Bitrix\Calendar\Sync\Builders\BuilderConnection\__construct
__construct($data)
Definition
builderconnection.php:18
Bitrix\Calendar\Sync\Builders\BuilderConnection\getOwner
getOwner()
Bitrix\Calendar\Sync\Builders\BuilderConnection\isDeleted
isDeleted()
Bitrix\Calendar\Sync\Connection\Connection
Definition
connection.php:13
Bitrix\Calendar\Sync\Connection\Connection\setId
setId(int $id)
Definition
connection.php:239
Bitrix\Calendar\Core\Builders\Builder
Definition
builder.php:6
Bitrix\Calendar\Sync\Vendor\VendorInterface
Definition
vendorinterface.php:9
Bitrix\Calendar\Sync\Builders
Definition
builderconnection.php:3
modules
calendar
lib
sync
builders
builderconnection.php
Создано системой
1.10.0