public function offsetSet($offset, $value)
    {
        if ( ! $this->magicAssignment) {
            throw new UnassignableAttributeException("Not allowed to assign value by magic with array access");
        }

        $this->checkAttributeAssignable($offset);

        $this->attributes[ $offset ] = $value;
    }
public function offsetSet($offset, $value)
    {
        if ( ! $this->magicAssignment) {
            throw new UnassignableAttributeException("Not allowed to assign value by magic with array access");
        }

        $this->checkAttributeAssignable($offset);

        $this->attributes[ $offset ] = $value;
    }
public function offsetSet ( $ offset , $ value ) { if ( ! $ this -> magicAssignment ) { throw new UnassignableAttributeException ( "Not allowed to assign value by magic with array access" ) ; } $ this -> checkAttributeAssignable ( $ offset ) ; $ this -> attributes [ $ offset ] = $ value ; }
Set the value for a given offset.

@param mixed $offset
@param mixed $value
@return void
Set the value for a given offset .