/** * This class does not use the $index part of this method * * {@inheritdoc} */ public function add(Node $node, $index = null) { $this->nodes[$node->getId()] = $node; return $this; }