15 private string $serviceName;
19 private ?
int $id =
null;
23 private ?
string $name =
null;
27 private ?
Role $owner =
null;
35 private bool $deleted =
false;
47 protected string $status =
'[200] Not synced';
105 return $this->status;
115 if ($status !==
null)
117 $this->status = $status;
138 $this->token = $token;
148 return $this->lastSyncTime;
157 $this->lastSyncTime = $time;
183 return $this->deleted;
193 $this->deleted = $deleted;
217 $this->vendor = $vendor;
229 $this->owner = $owner;
239 public function setId(
int $id): self
253 $this->sectionCollection = $sectionCollection;
268 return $this->sectionCollection;
276 return $this->name && $this->name !==
'';
293 $this->serviceName = $name;
303 return $this->serviceName;
308 $this->creator = $creator;
318 return $this->syncStatus;
328 if ($syncStatus !==
null)
330 $this->syncStatus = $syncStatus;
341 return $this->nextSyncTryTime;
351 $this->nextSyncTryTime = $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)