Ejemplo n.º 1
0
 /**
  * @param LearnerGroupInterface $learnerGroup
  */
 public function removeLearnerGroup(LearnerGroupInterface $learnerGroup)
 {
     if ($this->learnerGroups->contains($learnerGroup)) {
         $this->learnerGroups->removeElement($learnerGroup);
         $learnerGroup->removeInstructorGroup($this);
     }
 }
Ejemplo n.º 2
0
 /**
  * @param LearnerGroupInterface $child
  */
 public function addChild(LearnerGroupInterface $child)
 {
     if (!$this->children->contains($child)) {
         $this->children->add($child);
     }
 }
Ejemplo n.º 3
0
 /**
  * @param LearnerGroupInterface $instructedLearnerGroup
  */
 public function addInstructedLearnerGroup(LearnerGroupInterface $instructedLearnerGroup)
 {
     if (!$this->instructedLearnerGroups->contains($instructedLearnerGroup)) {
         $this->instructedLearnerGroups->add($instructedLearnerGroup);
         $instructedLearnerGroup->addInstructor($this);
     }
 }