/** * @param ObjectiveInterface $child */ public function addChild(ObjectiveInterface $child) { $this->children->add($child); }
/** * @param ObjectiveInterface $objective */ public function addObjective(ObjectiveInterface $objective) { $this->objectives->add($objective); }
/** * @param ObjectiveInterface $child */ public function addChild(ObjectiveInterface $child) { if (!$this->children->contains($child)) { $this->children->add($child); } }
/** * @inheritdoc */ public function addObjective(ObjectiveInterface $objective) { if (!$this->objectives->contains($objective)) { $this->objectives->add($objective); $objective->addCourse($this); } }
/** * @inheritdoc */ public function addObjective(ObjectiveInterface $objective) { if (!$this->objectives->contains($objective)) { $this->objectives->add($objective); $objective->addMeshDescriptor($this); } }