/** * {@inheritdoc} */ public function add(NodeInterface $node) { $this->children[$node->hashCode()] = $node->setParent($this); return $this; }