\PhpOffice\PhpSpreadsheet\WorksheetIterator

Summary

Methods
Properties
Constants
__construct()
__destruct()
rewind()
current()
key()
next()
valid()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$subject
$position
N/A

Properties

$subject

$subject : \PhpOffice\PhpSpreadsheet\Spreadsheet

Spreadsheet to iterate.

Type

Spreadsheet

$position

$position : int

Current iterator position.

Type

int

Methods

__construct()

__construct(\PhpOffice\PhpSpreadsheet\Spreadsheet  $subject) : mixed

Create a new worksheet iterator.

Parameters

\PhpOffice\PhpSpreadsheet\Spreadsheet $subject

Returns

mixed —

__destruct()

__destruct() : mixed

Destructor.

Returns

mixed —

rewind()

rewind() : void

Rewind iterator.

current()

current() : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet

Current Worksheet.

Returns

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet —

key()

key() : int

Current key.

Returns

int —

next()

next() : void

Next value.

valid()

valid() : bool

Are there more Worksheet instances available?

Returns

bool —