Multiple
extends MultipleIterator
in package
Class \Hoa\Iterator\Multiple.
Extending the SPL MultipleIterator class.
Tags
Table of Contents
Properties
- $_infos : array<string|int, mixed>
- Default value for each $infos.
Methods
- attachIterator() : void
- Attach iterator informations.
- current() : array<string|int, mixed>
- Get the registered iterator instances.
Properties
$_infos
Default value for each $infos.
protected
array<string|int, mixed>
$_infos
= []
Methods
attachIterator()
Attach iterator informations.
public
attachIterator(Iterator $iterator[, string $infos = null ][, mixed $default = null ]) : void
Add the $default argument that will be use when the iterator has reached its end.
Parameters
- $iterator : Iterator
-
Iterator.
- $infos : string = null
-
Informations to attach.
- $default : mixed = null
-
Default value.
current()
Get the registered iterator instances.
public
current() : array<string|int, mixed>