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