/** * @param CohortInterface $cohort */ public function addCohort(CohortInterface $cohort) { $this->cohorts->add($cohort); }
/** * @inheritdoc */ public function addCohort(CohortInterface $cohort) { if (!$this->cohorts->contains($cohort)) { $this->cohorts->add($cohort); $cohort->addCourse($this); } }