/** * @param CourseLearningMaterialInterface $courseLearningMaterial */ public function addCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial) { if (!$this->courseLearningMaterials->contains($courseLearningMaterial)) { $this->courseLearningMaterials->add($courseLearningMaterial); } }
/** * @inheritdoc */ public function removeLearningMaterial(CourseLearningMaterialInterface $learningMaterial) { if ($this->learningMaterials->contains($learningMaterial)) { $this->learningMaterials->removeElement($learningMaterial); } }
/** * @param CourseLearningMaterialInterface $courseLearningMaterial */ public function removeCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial) { if ($this->courseLearningMaterials->contains($courseLearningMaterial)) { $this->courseLearningMaterials->removeElement($courseLearningMaterial); $courseLearningMaterial->removeMeshDescriptor($this); } }