src/CSDT/CollectionsBundle/TraitCollection/MapCollectionTrait.php
public function setAll(array $assocArray)
    {
        foreach ($assocArray as $key => $value) {
            $this->set($key, $value);
        }
        
        return $this;
    }
public function setAll(array $assocArray)
    {
        foreach ($assocArray as $key => $value) {
            $this->set($key, $value);
        }
        
        return $this;
    }
Set all

Setting a list of key value into an
associative array.

@param array $assocArray The associative array to insert

@return MapCollectionInterface