3namespace Bitrix\Calendar\Sync\Connection;
5use Bitrix\Calendar\Core\Base\EntityInterface;
6use Bitrix\Calendar\Core\Event\Event;
7use Bitrix\Calendar\Internals\EventConnectionTable;
8use Bitrix\Main\ArgumentException;
13 private int $version = 0;
15 private ?
Event $event =
null;
17 private string $vendorEventId =
'';
21 private string $lastSyncStatus =
'';
23 private int $retryCount = 0;
25 private ?
string $entityTag =
null;
27 private ?
array $data =
null;
29 private ?
string $recurrenceId =
null;
31 private ?
int $id =
null;
33 private ?
string $vendorVersionId =
null;
70 $this->
event = $event;
80 return $this->vendorEventId;
89 $this->vendorEventId = $vendorEventId;
109 $this->connection = $connection;
119 return $this->lastSyncStatus;
129 $this->lastSyncStatus = $lastSyncStatus;
141 $this->retryCount = $retryCount;
151 return $this->retryCount;
159 return $this->entityTag;
167 return $this->vendorVersionId;
177 $this->vendorVersionId = $versionId;
189 $this->entityTag = $entityTag;
210 return $this->version;
234 $fetchDataResult = EventConnectionTable::query()
235 ->setSelect([
'DATA'])
236 ->where(
'ID', $this->
id)
240 return $fetchDataResult[
'DATA'] ??
null;
262 $this->recurrenceId = $id;
272 return $this->recurrenceId;
setLastSyncStatus(string $lastSyncStatus)
setVendorVersionId(?string $versionId)
setEntityTag(?string $entityTag=null)
setVendorEventId(string $vendorEventId)
setRetryCount(int $retryCount=0)
setRecurrenceId(?string $id)
setConnection(Connection $connection)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)