10use Bitrix\Calendar\Sync\Vendor\VendorInterface;
15 private string $serviceName;
19 private ?
int $id =
null;
23 private ?
string $name =
null;
27 private ?
Role $owner =
null;
31 private ?VendorInterface $vendor =
null;
35 private bool $deleted =
false;
47 protected string $status =
'[200] Not synced';
148 return $this->lastSyncTime;
157 $this->lastSyncTime =
$time;
183 return $this->deleted;
193 $this->deleted = $deleted;
215 public function setVendor(VendorInterface $vendor): self
217 $this->vendor = $vendor;
229 $this->owner = $owner;
239 public function setId(
int $id): self
268 return $this->sectionCollection;
276 return $this->name && $this->name !==
'';
293 $this->serviceName = $name;
303 return $this->serviceName;
318 return $this->syncStatus;
341 return $this->nextSyncTryTime;
setSyncStatus(?string $syncStatus)
setDeleted(bool $deleted)
SectionCollection $sectionCollection
setNextSyncTry(?Date $nextSyncTryTime)
setServer(Server $server)
setLastSyncTime(?Date $time)
setStatus(?string $status)
setServiceName(string $name)
setSectionCollection(SectionCollection $sectionCollection)
setVendor(VendorInterface $vendor)
setCreator(?Role $creator)