/** * {@inheritdoc} */ public function setParent(ItemInterface $parent = null) { $this->setParentCollection($parent ? $parent->getChildren() : null); }