src/ExtendedArrays/AssociativeArray.php
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            throw new \Exception('Must supply key to modify arguments in an AssociativeArray.');
        } else {
            $this->_args[$offset] = $value;
        }
    }
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            throw new \Exception('Must supply key to modify arguments in an AssociativeArray.');
        } else {
            $this->_args[$offset] = $value;
        }
    }
public function offsetSet ( $ offset , $ value ) { if ( is_null ( $ offset ) ) { throw new \ Exception ( 'Must supply key to modify arguments in an AssociativeArray.' ) ; } else { $ this -> _args [ $ offset ] = $ value ; } }
Override the offsetSet function to modify
values of the wrapped array. Key is enforced.

@param  mixed $offset
@param  mixed $value

@return mixed
@throws \Exception
Override the offsetSet function to modify values of the wrapped array . Key is enforced .