/** * @param Psc\Entities\NavigationNode $child * @chainable */ public function removeChild(NavigationNode $child) { if ($this->children->contains($child)) { $this->children->removeElement($child); } return $this; }
/** * @param Psc\Entities\NavigationNode $navigationNode * @chainable */ public function removeNavigationNode(NavigationNode $navigationNode) { if ($this->navigationNodes->contains($navigationNode)) { $this->navigationNodes->removeElement($navigationNode); } return $this; }