public function setParent(CategoryInterface $parent = null);
/** * {@inheritdoc} */ public function addChild(CategoryInterface $child) { $this->children[] = $child; $child->setParent($this); }