/** * {@inheritdoc} */ public function add(ElementInterface $elm) { $id = $elm->getId(); $this->elements[$id] = $elm; }