/** * Adds all the elements to the array * * @param CollectionInterface $collection */ public function addAll(CollectionInterface $collection = NULL) { $elements = $collection->toArray(); $this->doAddAll($elements); return true; }