src/CSDT/CollectionsBundle/TraitCollection/ValueCollectionTrait.php
public function removeAll(array $values)
    {
        $removedValues = array();
        foreach ($values as $value) {
            if ($this->remove($value) !== null) {
                $removedValues[] = $value;
            }
        }
        return $removedValues;
    }
public function removeAll(array $values)
    {
        $removedValues = array();
        foreach ($values as $value) {
            if ($this->remove($value) !== null) {
                $removedValues[] = $value;
            }
        }
        return $removedValues;
    }
Remove all

This method is used to remove a list
of element from the collection. It
return a list of removed elements.

@param array $values The list of value to remove

@return array