person = $person; $this->center = $center; $this->startDate = $startDate; } public function getCenter(): ?Center { return $this->center; } public function getEndDate(): ?DateTimeImmutable { return $this->endDate; } public function getId(): ?int { return $this->id; } public function getPerson(): ?Person { return $this->person; } public function getStartDate(): ?DateTimeImmutable { return $this->startDate; } public function setCenter(?Center $center): self { $this->center = $center; return $this; } public function setEndDate(?DateTimeImmutable $endDate): self { $this->endDate = $endDate; return $this; } public function setPerson(?Person $person): self { $this->person = $person; return $this; } public function setStartDate(?DateTimeImmutable $startDate): self { $this->startDate = $startDate; return $this; } }