src/CSDT/CollectionsBundle/TraitCollection/MapCollectionTrait.php
public function removeAll(array $keys)
    {
        $comparison = array_flip($keys);
        
        $returnValues = array_intersect_key($this->content, $comparison);
        $this->content = array_diff_key($this->content, $comparison);
        return $returnValues;
    }
public function removeAll(array $keys)
    {
        $comparison = array_flip($keys);
        
        $returnValues = array_intersect_key($this->content, $comparison);
        $this->content = array_diff_key($this->content, $comparison);
        return $returnValues;
    }
Remove all

This method allow to remove a set of key. It return
an array of removed value.

@param array $keys The set of key to remove

@return array