\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

\PhpOffice\PhpSpreadsheet\Spreadsheet

$position

$position : integer

Current iterator position.

Type

integer

Methods

__construct()

__construct(\PhpOffice\PhpSpreadsheet\Spreadsheet  $subject) 

Create a new worksheet iterator.

Parameters

\PhpOffice\PhpSpreadsheet\Spreadsheet $subject

__destruct()

__destruct() 

Destructor.

rewind()

rewind() 

Rewind iterator.

current()

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

Current Worksheet.

Returns

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet

key()

key() : integer

Current key.

Returns

integer

next()

next() 

Next value.

valid()

valid() : boolean

Are there more Worksheet instances available?

Returns

boolean