public function offsetSet($offset, $value)
    {
        if (true === is_null($offset)) {
            $this->className = $value;
        } else {
            $this->{$offset} = $value;
        }
    }
public function offsetSet($offset, $value)
    {
        if (true === is_null($offset)) {
            $this->className = $value;
        } else {
            $this->{$offset} = $value;
        }
    }
public function offsetSet ( $ offset , $ value ) { if ( true === is_null ( $ offset ) ) { $ this -> className = $ value ; } else { $ this -> { $ offset } = $ value ; } }
Implements offsetSet.

@param string $offset The offset to set
@param mixed  $value  The value to set
Implements offsetSet .