/** * @inheritdoc */ public function addCourse(CourseInterface $course) { if (!$this->courses->contains($course)) { $this->courses->add($course); $course->addTerm($this); } }
/** * @param CourseInterface $course */ public function addCourse(CourseInterface $course) { $this->courses->add($course); }
/** * @param CourseInterface $course */ public function addDirectedCourse(CourseInterface $course) { $this->directedCourses->add($course); }
/** * @param ProgramInterface $program */ public function addProgram(ProgramInterface $program) { $this->programs->add($program); }
/** * @inheritdoc */ public function addCourse(CourseInterface $course) { if (!$this->courses->contains($course)) { $this->courses->add($course); $course->addMeshDescriptor($this); } }
/** * @param CourseInterface $course */ public function addAdministeredCourse(CourseInterface $course) { if (!$this->administeredCourses->contains($course)) { $this->administeredCourses->add($course); $course->addAdministrator($this); } }