/** * Removes from this list all of its elements that * are contained in the specified collection * @param CollectionInterface $collection * @return void */ public function removeAll(CollectionInterface $collection) { $this->array = array_values(array_diff($this->array, $collection->toArray())); }