public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->lines[] = $value;
        } else {
            $index = $this->findLine($offset);

            if ($index >= 0) {
                $this->lines[$index] = "{$offset}={$value}";
            } else {
                $this->lines[] = "{$offset}={$value}";
            }
        }
    }
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->lines[] = $value;
        } else {
            $index = $this->findLine($offset);

            if ($index >= 0) {
                $this->lines[$index] = "{$offset}={$value}";
            } else {
                $this->lines[] = "{$offset}={$value}";
            }
        }
    }
public function offsetSet ( $ offset , $ value ) { if ( is_null ( $ offset ) ) { $ this -> lines [ ] = $ value ; } else { $ index = $ this -> findLine ( $ offset ) ; if ( $ index >= 0 ) { $ this -> lines [ $ index ] = "{$offset}={$value}" ; } else { $ this -> lines [ ] = "{$offset}={$value}" ; } } }
Assigns a value to the specified offset

@param string $offset The offset to assign the value to
@param mixed $value The value to set
@access public
@abstracting ArrayAccess
Assigns a value to the specified offset