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