course->getCenters(); } public function getCourse(): ?AccompanyingPeriod { return $this->course; } public function getId() { return $this->id; } public function getScopes(): iterable { if (null === $this->course) { return []; } return $this->course->getScopes(); } public function setCourse(?AccompanyingPeriod $course): self { $this->course = $course; return $this; } }