17 private EO_EventConnection $entity;
24 $this->entity = $link;
30 ->
setId($this->getId())
31 ->setEntityTag($this->getEntityTag())
32 ->setVendorVersionId($this->entity->getVendorVersionId())
33 ->setRecurrenceId($this->entity->getRecurrenceId())
34 ->setLastSyncStatus($this->getLastSyncStatus())
35 ->setVendorEventId($this->getVendorEventId())
36 ->setVersion($this->getVersion())
37 ->setData($this->entity->getData())
38 ->setConnection($this->getConnection())
39 ->setEvent($this->getEvent())
43 private function getId(): int
45 return $this->entity->getId();
48 private function getEntityTag(): ?string
50 return $this->entity->getEntityTag();
53 private function getLastSyncStatus(): ?string
55 return $this->entity->getSyncStatus();
58 private function getVendorEventId(): ?string
60 return $this->entity->getVendorEventId();
63 private function getVersion(): ?string
65 return $this->entity->getVersion();
68 private function getConnection(): Connection
70 return (
new BuilderConnectionFromDM($this->entity->getConnection()))->build();
73 private function getEvent(): Event
75 return (
new EventBuilderFromEntityObject($this->entity->getEvent()))->build();