Example #1
0
 /**
  * @param CohortInterface $cohort
  */
 public function addCohort(CohortInterface $cohort)
 {
     $this->cohorts->add($cohort);
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function removeCohort(CohortInterface $cohort)
 {
     if ($this->cohorts->contains($cohort)) {
         $this->cohorts->removeElement($cohort);
         $cohort->removeCourse($this);
     }
 }