/** * @param MeshTreeInterface $tree */ public function addTree(MeshTreeInterface $tree) { $this->trees->add($tree); }
/** * @param MeshTreeInterface $tree */ public function addTree(MeshTreeInterface $tree) { if (!$this->trees->contains($tree)) { $this->trees->add($tree); } }