remoteId = $calendarRange->getRemoteId(); $this->remoteAttributes = $calendarRange->getRemoteAttributes(); $this->calendarRangeUserId = $calendarRange->getUser()->getId(); if (null !== $byUser) { $this->byUserId = $byUser->getId(); } } public function getByUserId(): ?int { return $this->byUserId; } public function getCalendarRangeUserId(): ?int { return $this->calendarRangeUserId; } public function getRemoteAttributes(): array { return $this->remoteAttributes; } public function getRemoteId(): string { return $this->remoteId; } }