src/SetManyCapableTrait.php
protected function _setMany($data)
    {
        $data  = $this->_normalizeIterable($data);
        $store = $this->_getDataStore();

        try {
            $this->_containerSetMany($store, $data);
        } catch (InvalidArgumentException $e) {
            throw $this->_createOutOfRangeException($this->__('Invalid store'), null, $e, $store);
        }
    }
protected function _setMany($data)
    {
        $data  = $this->_normalizeIterable($data);
        $store = $this->_getDataStore();

        try {
            $this->_containerSetMany($store, $data);
        } catch (InvalidArgumentException $e) {
            throw $this->_createOutOfRangeException($this->__('Invalid store'), null, $e, $store);
        }
    }
protected function _setMany ( $ data ) { $ data = $ this -> _normalizeIterable ( $ data ) ; $ store = $ this -> _getDataStore ( ) ; try { $ this -> _containerSetMany ( $ store , $ data ) ; } catch ( InvalidArgumentException $ e ) { throw $ this -> _createOutOfRangeException ( $ this -> __ ( 'Invalid store' ) , null , $ e , $ store ) ; } }
Assign data.

@since [*next-version*]

@param array|stdClass|Traversable $data The data to set. Existing keys will be overwritten.
The rest of the data remains unaltered.

@throws InvalidArgumentException    If the data map is invalid.
@throws OutOfRangeException         If the internal data store one of the data keys to set is invalid.
@throws ContainerExceptionInterface If a problem with setting data occurs.
Assign data .