9use Bitrix\Calendar\Core;
18 private ?
int $id =
null;
20 private ?
string $vendorSectionId =
null;
22 private ?
string $syncToken =
null;
24 private ?
string $pageToken =
null;
30 private bool $active =
true;
32 private ?
Date $lastSyncDate =
null;
34 private ?
string $lastSyncStatus =
'';
36 private ?
string $versionId =
null;
38 private bool $primary =
false;
49 return $this->connection;
57 return $this->pageToken;
65 return $this->syncToken;
74 $this->pageToken = $token;
85 $this->syncToken = $token;
97 public function save(): self
116 return $this->vendorSectionId;
125 $this->connection = $connection;
137 $this->vendorSectionId = $vendorSectionId;
147 return $this->section;
157 $this->section = $section;
169 $this->active = $active;
179 return $this->active;
189 $this->lastSyncDate = $lastSyncDate;
199 return $this->lastSyncDate;
209 $this->lastSyncStatus = $lastSyncStatus;
219 return $this->lastSyncStatus ??
'';
229 $this->versionId = $versionId;
239 return $this->versionId;
247 public function setId(
int $id): self
267 return $this->primary;
277 $this->primary = $primary;
306 return $this->
id ===
null;
setSection(?Section $section)
setSyncToken(?string $token)
setPrimary(bool $primary)
setLastSyncStatus(?string $lastSyncStatus)
setVersionId(?string $versionId)
setVendorSectionId(?string $vendorSectionId)
setConnection(?Connection $connection)
setPageToken(?string $token)
setLastSyncDate(?Core\Base\Date $lastSyncDate)