calendar; } //TODO Lieu public function getEndDate(): ?DateTimeImmutable { return $this->endDate; } public function getId(): ?int { return $this->id; } public function getStartDate(): ?DateTimeImmutable { return $this->startDate; } public function getUser(): ?User { return $this->user; } /** * @internal use {@link (Calendar::setCalendarRange)} instead */ public function setCalendar(?Calendar $calendar): void { $this->calendar = $calendar; } public function setEndDate(DateTimeImmutable $endDate): self { $this->endDate = $endDate; return $this; } public function setStartDate(DateTimeImmutable $startDate): self { $this->startDate = $startDate; return $this; } public function setUser(?User $user): self { $this->user = $user; return $this; } }