title = $title; } public function setStart(\DateTimeInterface $start): void { $this->start = $start; } public function setEnd(\DateTimeInterface $end): void { $this->end = $end; } public function setColor(?string $color): void { $this->color = $color; if ($color !== null && $this->textColor === null) { $this->textColor = (new Color())->getFontContrastColor($color); } } public function setAllDay(bool $allDay): void { $this->allDay = $allDay; } public function setTextColor(?string $textColor): void { $this->textColor = $textColor; } }