class Row (View source)

Methods

__construct(Worksheet $worksheet = null, int $rowIndex = 1)

Create a new row.

__destruct()

Destructor.

int
getRowIndex()

Get row index.

getCellIterator(string $startColumn = 'A', string $endColumn = null)

Get cell iterator.

getWorksheet()

Returns bound worksheet.

Details

__construct(Worksheet $worksheet = null, int $rowIndex = 1)

Create a new row.

Parameters

Worksheet $worksheet
int $rowIndex

__destruct()

Destructor.

int getRowIndex()

Get row index.

Return Value

int

RowCellIterator getCellIterator(string $startColumn = 'A', string $endColumn = null)

Get cell iterator.

Parameters

string $startColumn The column address at which to start iterating
string $endColumn Optionally, the column address at which to stop iterating

Return Value

RowCellIterator

Worksheet getWorksheet()

Returns bound worksheet.

Return Value

Worksheet