/** * @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 removeChild(LearnerGroupInterface $child) { $this->children->removeElement($child); }
/** * @param LearnerGroupInterface $instructedLearnerGroup */ public function removeInstructedLearnerGroup(LearnerGroupInterface $instructedLearnerGroup) { $this->instructedLearnerGroups->removeElement($instructedLearnerGroup); $instructedLearnerGroup->removeInstructor($this); }