AuthorCollectionIterator
implements
Iterator
Interfaces, Classes, Traits and Enums
- Iterator
Table of Contents
-
$authors
: array<string|int, Author>
-
$position
: int
-
__construct()
: mixed
-
current()
: Author
-
key()
: int
-
next()
: void
-
rewind()
: void
-
valid()
: bool
$authors
private
array<string|int, Author>
$authors
$position
private
int
$position
= 0
__construct()
public
__construct(AuthorCollection $authors) : mixed
Parameters
-
$authors
: AuthorCollection
-
Return values
mixed
—
current()
public
current() : Author
Return values
Author
—
key()
public
key() : int
Return values
int
—
next()
public
next() : void
Return values
void
—
rewind()
public
rewind() : void
Return values
void
—
valid()
public
valid() : bool
Return values
bool
—