Iterator
in package
implements
Iterator
Tags
Table of Contents
Interfaces
- Iterator
Properties
- $position : int
- Current iterator position.
- $subject : Spreadsheet
- Spreadsheet to iterate.
Methods
- __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
$subject
Spreadsheet to iterate.
private
Spreadsheet
$subject
Methods
__construct()
Create a new worksheet iterator.
public
__construct(Spreadsheet $subject) : mixed
Parameters
- $subject : Spreadsheet
current()
Current Worksheet.
public
current() : Worksheet
Return values
Worksheetkey()
Current key.
public
key() : int
Return values
intnext()
Next value.
public
next() : void
rewind()
Rewind iterator.
public
rewind() : void
valid()
Are there more Worksheet instances available?
public
valid() : bool