PHP Класс Prooph\EventStore\Util\CompositeIterator

Наследование: implements Iterato\Iterator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $iterators, callable $callback )
current ( ) : mixed Return the current element
key ( ) : mixed Return the key of the current element Note: You should not rely on the key, unless the key tracks information from which iterator it comes
next ( ) : void Move forward to next element
rewind ( ) Rewind the Iterator to the first element
valid ( ) : boolean Checks if current position is valid

Приватные методы

Метод Описание
nextIterator ( ) : Iterator

Описание методов

__construct() публичный Метод

public __construct ( array $iterators, callable $callback )
$iterators array
$callback callable

current() публичный Метод

Return the current element
public current ( ) : mixed
Результат mixed

key() публичный Метод

Return the key of the current element Note: You should not rely on the key, unless the key tracks information from which iterator it comes
public key ( ) : mixed
Результат mixed scalar on success, or null on failure.

next() публичный Метод

Move forward to next element
public next ( ) : void
Результат void

rewind() публичный Метод

Rewind the Iterator to the first element
public rewind ( )

valid() публичный Метод

Checks if current position is valid
public valid ( ) : boolean
Результат boolean