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