public function offsetSet($index, $row) 
    {
        if (is_null($index)) {
            $this->rows[] = $row;
        } else {
            $this->rows[$index] = $row;
        }
    }
public function offsetSet($index, $row) 
    {
        if (is_null($index)) {
            $this->rows[] = $row;
        } else {
            $this->rows[$index] = $row;
        }
    }
public function offsetSet ( $ index , $ row ) { if ( is_null ( $ index ) ) { $ this -> rows [ ] = $ row ; } else { $ this -> rows [ $ index ] = $ row ; } }
Implement offsetSet for ArrayAccess interface

@param integer $index The index of row needed to be added
@param array   $row   The row need to add

@return null
Implement offsetSet for ArrayAccess interface