示例#1
0
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function addCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     $this->courseLearningMaterials->add($courseLearningMaterial);
 }
示例#2
0
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function removeCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     $this->courseLearningMaterials->removeElement($courseLearningMaterial);
 }
示例#3
0
 /**
  * @inheritdoc
  */
 public function removeLearningMaterial(CourseLearningMaterialInterface $learningMaterial)
 {
     if ($this->learningMaterials->contains($learningMaterial)) {
         $this->learningMaterials->removeElement($learningMaterial);
     }
 }
示例#4
0
 /**
  * @param CourseLearningMaterialInterface $courseLearningMaterial
  */
 public function removeCourseLearningMaterial(CourseLearningMaterialInterface $courseLearningMaterial)
 {
     if ($this->courseLearningMaterials->contains($courseLearningMaterial)) {
         $this->courseLearningMaterials->removeElement($courseLearningMaterial);
         $courseLearningMaterial->removeMeshDescriptor($this);
     }
 }