public function addChild(PageInterface $child) { $this->children[] = $child; $child->setParent($this); }