Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventconnection.php
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Connection
;
4
5
use
Bitrix\Calendar\Core\Base\EntityInterface
;
6
use
Bitrix\Calendar\Core\Event\Event
;
7
8
class
EventConnection
implements
EntityInterface
9
{
11
private
int
$version = 0;
13
private
?
Event
$event =
null
;
15
private
string
$vendorEventId =
''
;
17
private
?
Connection
$connection =
null
;
19
private
string
$lastSyncStatus =
''
;
21
private
int
$retryCount = 0;
23
private
?
string
$entityTag =
null
;
25
private
?array $data =
null
;
27
private
?
string
$recurrenceId =
null
;
29
private
?
int
$id =
null
;
31
private
?
string
$vendorVersionId =
null
;
32
38
public
function
setId
(?
int
$id):
EventConnection
39
{
40
$this->
id
= $id;
41
42
return
$this;
43
}
44
48
public
function
getId
(): ?int
49
{
50
return
$this->id;
51
}
52
56
public
function
getEvent
():
Event
57
{
58
return
$this->event;
59
}
60
66
public
function
setEvent
(
Event
$event): self
67
{
68
$this->
event
= $event;
69
70
return
$this;
71
}
72
76
public
function
getVendorEventId
(): string
77
{
78
return
$this->vendorEventId;
79
}
80
85
public
function
setVendorEventId
(
string
$vendorEventId): self
86
{
87
$this->vendorEventId = $vendorEventId;
88
89
return
$this;
90
}
91
95
public
function
getConnection
():
Connection
96
{
97
return
$this->connection;
98
}
99
105
public
function
setConnection
(
Connection
$connection): self
106
{
107
$this->connection = $connection;
108
109
return
$this;
110
}
111
115
public
function
getLastSyncStatus
(): string
116
{
117
return
$this->lastSyncStatus;
118
}
119
125
public
function
setLastSyncStatus
(
string
$lastSyncStatus): self
126
{
127
$this->lastSyncStatus = $lastSyncStatus;
128
129
return
$this;
130
}
131
137
public
function
setRetryCount
(
int
$retryCount = 0):
EventConnection
138
{
139
$this->retryCount = $retryCount;
140
141
return
$this;
142
}
143
147
public
function
getRetryCount
(): int
148
{
149
return
$this->retryCount;
150
}
151
155
public
function
getEntityTag
(): ?string
156
{
157
return
$this->entityTag;
158
}
159
163
public
function
getVendorVersionId
(): ?string
164
{
165
return
$this->vendorVersionId;
166
}
167
173
public
function
setVendorVersionId
(?
string
$versionId): self
174
{
175
$this->vendorVersionId = $versionId;
176
177
return
$this;
178
}
179
185
public
function
setEntityTag
(?
string
$entityTag =
null
): self
186
{
187
$this->entityTag = $entityTag;
188
189
return
$this;
190
}
191
196
public
function
setVersion
(
int
$version): self
197
{
198
$this->version = $version;
199
200
return
$this;
201
}
202
206
public
function
getVersion
(): int
207
{
208
return
$this->version;
209
}
210
211
public
function
getData
(): ?array
212
{
213
return
$this->data;
214
}
215
216
public
function
setData
($data):
EventConnection
217
{
218
$this->data = $data;
219
220
return
$this;
221
}
222
226
public
function
getEventVersion
(): ?string
227
{
228
return
$this->
getVersion
();
229
}
230
235
public
function
setRecurrenceId
(?
string
$id):
EventConnection
236
{
237
$this->recurrenceId = $id;
238
239
return
$this;
240
}
241
245
public
function
getRecurrenceId
(): ?string
246
{
247
return
$this->recurrenceId;
248
}
249
250
public
function
upVersion
()
251
{
252
$this->version++;
253
}
254
}
Bitrix\Calendar\Core\Event\Event
Definition
event.php:20
Bitrix\Calendar\Sync\Connection\Connection
Definition
connection.php:13
Bitrix\Calendar\Sync\Connection\EventConnection
Definition
eventconnection.php:9
Bitrix\Calendar\Sync\Connection\EventConnection\setId
setId(?int $id)
Definition
eventconnection.php:38
Bitrix\Calendar\Sync\Connection\EventConnection\setLastSyncStatus
setLastSyncStatus(string $lastSyncStatus)
Definition
eventconnection.php:125
Bitrix\Calendar\Sync\Connection\EventConnection\getEvent
getEvent()
Definition
eventconnection.php:56
Bitrix\Calendar\Sync\Connection\EventConnection\getVendorVersionId
getVendorVersionId()
Definition
eventconnection.php:163
Bitrix\Calendar\Sync\Connection\EventConnection\upVersion
upVersion()
Definition
eventconnection.php:250
Bitrix\Calendar\Sync\Connection\EventConnection\getId
getId()
Definition
eventconnection.php:48
Bitrix\Calendar\Sync\Connection\EventConnection\setVendorVersionId
setVendorVersionId(?string $versionId)
Definition
eventconnection.php:173
Bitrix\Calendar\Sync\Connection\EventConnection\getEventVersion
getEventVersion()
Definition
eventconnection.php:226
Bitrix\Calendar\Sync\Connection\EventConnection\getRecurrenceId
getRecurrenceId()
Definition
eventconnection.php:245
Bitrix\Calendar\Sync\Connection\EventConnection\setEntityTag
setEntityTag(?string $entityTag=null)
Definition
eventconnection.php:185
Bitrix\Calendar\Sync\Connection\EventConnection\getEntityTag
getEntityTag()
Definition
eventconnection.php:155
Bitrix\Calendar\Sync\Connection\EventConnection\setData
setData($data)
Definition
eventconnection.php:216
Bitrix\Calendar\Sync\Connection\EventConnection\setVendorEventId
setVendorEventId(string $vendorEventId)
Definition
eventconnection.php:85
Bitrix\Calendar\Sync\Connection\EventConnection\setEvent
setEvent(Event $event)
Definition
eventconnection.php:66
Bitrix\Calendar\Sync\Connection\EventConnection\setRetryCount
setRetryCount(int $retryCount=0)
Definition
eventconnection.php:137
Bitrix\Calendar\Sync\Connection\EventConnection\getData
getData()
Definition
eventconnection.php:211
Bitrix\Calendar\Sync\Connection\EventConnection\setRecurrenceId
setRecurrenceId(?string $id)
Definition
eventconnection.php:235
Bitrix\Calendar\Sync\Connection\EventConnection\getLastSyncStatus
getLastSyncStatus()
Definition
eventconnection.php:115
Bitrix\Calendar\Sync\Connection\EventConnection\getConnection
getConnection()
Definition
eventconnection.php:95
Bitrix\Calendar\Sync\Connection\EventConnection\setVersion
setVersion(int $version)
Definition
eventconnection.php:196
Bitrix\Calendar\Sync\Connection\EventConnection\getRetryCount
getRetryCount()
Definition
eventconnection.php:147
Bitrix\Calendar\Sync\Connection\EventConnection\setConnection
setConnection(Connection $connection)
Definition
eventconnection.php:105
Bitrix\Calendar\Sync\Connection\EventConnection\getVendorEventId
getVendorEventId()
Definition
eventconnection.php:76
Bitrix\Calendar\Sync\Connection\EventConnection\getVersion
getVersion()
Definition
eventconnection.php:206
Bitrix\Calendar\Core\Base\EntityInterface
Definition
entityinterface.php:6
Bitrix\Calendar\Sync\Connection
Definition
connection.php:3
modules
calendar
lib
sync
connection
eventconnection.php
Создано системой
1.10.0