19 private EO_SectionConnection $link;
35 ->setActive($this->getIsActive())
36 ->setId($this->getId())
37 ->setLastSyncDate($this->getLastSyncDate())
38 ->setLastSyncStatus($this->getLastSyncStatus())
39 ->setPageToken($this->getPageToken())
40 ->setSection($this->getSection())
41 ->setSyncToken($this->getSyncToken())
42 ->setVersionId($this->getVersionId())
43 ->setVendorSectionId($this->getVendorSectionId())
44 ->setConnection($this->getConnection())
51 private function getIsActive(): bool
53 return $this->link->getActive();
59 private function getId(): int
61 return $this->link->getId();
68 private function getLastSyncDate():
Date
71 $this->link->getLastSyncDate(),
73 (
new DateTime)->getTimezone()->getName()
80 private function getLastSyncStatus(): ?string
82 return $this->link->getLastSyncStatus();
88 private function getPageToken(): ?string
90 return $this->link->getPageToken();
96 private function getSection(): ?Section
98 if ($section = $this->link->getSection())
100 return (
new SectionBuilderFromDataManager($section))->build();
109 private function getSyncToken(): ?string
111 return $this->link->getSyncToken();
117 private function getVersionId(): ?string
119 return $this->link->getVersionId();
125 private function getVendorSectionId(): ?string
127 return $this->link->getVendorSectionId();
133 private function getConnection(): ?Connection
135 if ($connection = $this->link->getConnection())
137 return (
new BuilderConnectionFromDM($connection))->build();