Documentation

Iterator implements Iterator

Tags
implements

\Iterator<int, Worksheet>

Interfaces, Classes and Traits

Iterator

Table of Contents

$position  : int
Current iterator position.
$subject  : Spreadsheet
Spreadsheet to iterate.
__construct()  : mixed
Create a new worksheet iterator.
current()  : Worksheet
Current Worksheet.
key()  : int
Current key.
next()  : void
Next value.
rewind()  : void
Rewind iterator.
valid()  : bool
Are there more Worksheet instances available?

Properties

$position

Current iterator position.

private int $position = 0

Methods

__construct()

Create a new worksheet iterator.

public __construct(Spreadsheet $subject) : mixed
Parameters
$subject : Spreadsheet
Return values
mixed

key()

Current key.

public key() : int
Return values
int

next()

Next value.

public next() : void
Return values
void

rewind()

Rewind iterator.

public rewind() : void
Return values
void

valid()

Are there more Worksheet instances available?

public valid() : bool
Return values
bool

Search results