/** * Add Child * * @param \Jazzee\Entity\Page $page */ public function addChild(\Jazzee\Entity\Page $page) { $this->children[] = $page; if ($page->getParent() != $this) { $page->setParent($this); } }