id; } public function getStartOn(): ?\DateTime { return $this->startOn; } public function setStartOn(\DateTime $startOn): static { $this->startOn = $startOn; return $this; } public function getEndOn(): ?\DateTime { return $this->endOn; } public function setEndOn(\DateTime $endOn): static { $this->endOn = $endOn; return $this; } public function getEvent(): ?Event { return $this->event; } public function setEvent(?Event $event): static { $this->event = $event; return $this; } public function isLocked(): ?bool { return $this->locked; } public function setLocked(?bool $locked): static { $this->locked = $locked; return $this; } }