public function addColumn($content, $columnIndex = null, $rowIndex = null)
    {
        $rowIndex = $rowIndex === null
            ? $this->rowIndex
            : $rowIndex;
        if ($columnIndex === null) {
            $columnIndex = isset($this->rows[ $rowIndex ])
                ? count($this->rows[ $rowIndex ])
                : 0;
        }
        $this->rows[ $rowIndex ][ $columnIndex ] = $content;

        return $this;
    }
public function addColumn($content, $columnIndex = null, $rowIndex = null)
    {
        $rowIndex = $rowIndex === null
            ? $this->rowIndex
            : $rowIndex;
        if ($columnIndex === null) {
            $columnIndex = isset($this->rows[ $rowIndex ])
                ? count($this->rows[ $rowIndex ])
                : 0;
        }
        $this->rows[ $rowIndex ][ $columnIndex ] = $content;

        return $this;
    }
public function addColumn ( $ content , $ columnIndex = null , $ rowIndex = null ) { $ rowIndex = $ rowIndex === null ? $ this -> rowIndex : $ rowIndex ; if ( $ columnIndex === null ) { $ columnIndex = isset ( $ this -> rows [ $ rowIndex ] ) ? count ( $ this -> rows [ $ rowIndex ] ) : 0 ; } $ this -> rows [ $ rowIndex ] [ $ columnIndex ] = $ content ; return $ this ; }
Adds a column to the table

@param  mixed $content     The data of the column
@param  int   $columnIndex The column index to populate
@param  int   $rowIndex    The row index, if the row isn't starting from zero, specify it here.

@return static
Adds a column to the table