src/CSDT/CollectionsBundle/TraitCollection/ContainerCollectionTrait.php
public function containAll(array $elements) 
    {
        foreach ($elements as $element) {
            if (!$this->contain($element)) {
                return false;
            }
        }
        
        return true;
    }
public function containAll(array $elements) 
    {
        foreach ($elements as $element) {
            if (!$this->contain($element)) {
                return false;
            }
        }
        
        return true;
    }
Contain all

This method is used to check if the
current collection contain a specific
list of values. It return true if the
collection contain all of the list
values.

@param array $elements The list of needed elements

@return boolean