Documentation

ExtendedObjectIterator implements Iterator

An iterator for objects.

Table of Contents

Interfaces

Iterator

Properties

$_current  : mixed
Current position.
$_data  : mixed
The object collection.
$_keys  : array<string|int, string>
Keys in the data array.

Methods

__construct()  : mixed
Constructor. Receives the object collection.
current()  : mixed
Return the current value.
key()  : string
Return the key of the current position.
next()  : mixed
Move to the next value.
rewind()  : void
Rewind to the first entry.
valid()  : bool
Check the validity of the iterator, i.e., whether the current value is valid.

Properties

Methods

__construct()

Constructor. Receives the object collection.

public __construct([array<string|int, mixed>|null $data = null ]) : mixed
Parameters
$data : array<string|int, mixed>|null = null

The collection

valid()

Check the validity of the iterator, i.e., whether the current value is valid.

public valid() : bool
Return values
bool

        
On this page

Search results