class Column (View source)

Methods

__construct(Worksheet $parent = null, string $columnIndex = 'A')

Create a new column.

__destruct()

Destructor.

string
getColumnIndex()

Get column index as string eg: 'A'.

getCellIterator(int $startRow = 1, int $endRow = null)

Get cell iterator.

Details

__construct(Worksheet $parent = null, string $columnIndex = 'A')

Create a new column.

Parameters

Worksheet $parent
string $columnIndex

__destruct()

Destructor.

string getColumnIndex()

Get column index as string eg: 'A'.

Return Value

string

ColumnCellIterator getCellIterator(int $startRow = 1, int $endRow = null)

Get cell iterator.

Parameters

int $startRow The row number at which to start iterating
int $endRow Optionally, the row number at which to stop iterating

Return Value

ColumnCellIterator