Iterator implements Iterator
Tags
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
$subject
Spreadsheet to iterate.
private
Spreadsheet
$subject
Methods
__construct()
Create a new worksheet iterator.
public
__construct(Spreadsheet $subject) : mixed
Parameters
- $subject : Spreadsheet
Return values
mixed —current()
Current Worksheet.
public
current() : Worksheet
Return values
Worksheet —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