calendars = new ArrayCollection(); } 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; } 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; } }