remoteId = $calendar->getRemoteId(); $this->remoteAttributes = $calendar->getRemoteAttributes(); $this->calendarUserId = $calendar->getMainUser()->getId(); if ($calendar->hasCalendarRange()) { $this->associatedCalendarRangeId = $calendar->getCalendarRange()->getId(); } if (null !== $byUser) { $this->byUserId = $byUser->getId(); } } public function getAssociatedCalendarRangeId(): ?int { return $this->associatedCalendarRangeId; } public function getByUserId(): ?int { return $this->byUserId; } public function getCalendarUserId(): ?int { return $this->calendarUserId; } public function getRemoteAttributes(): array { return $this->remoteAttributes; } public function getRemoteId(): string { return $this->remoteId; } }