PHP Интерфейс Pinq\Iterators\IJoinToIterator

Автор: Elliot Levin ([email protected])
Наследование: extends Pinq\Iterators\IWrapperIterator
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
projectTo ( callable $function ) : Traversable Returns a new join iterator that will project the values with the supplied function, called with the parameters ($outerValue, $innerValue, $outerKey, $innerKey).
walk ( callable $function ) : void Walks the joined elements
withDefault ( mixed $value, mixed $key = null ) : Pinq\Iterators\IJoinToIterator Returns a new join iterator that will join the supplied element if no matching inner elements are given.

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

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

Returns a new join iterator that will project the values with the supplied function, called with the parameters ($outerValue, $innerValue, $outerKey, $innerKey).
public projectTo ( callable $function ) : Traversable
$function callable
Результат Traversable

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

Walks the joined elements
public walk ( callable $function ) : void
$function callable
Результат void

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

Returns a new join iterator that will join the supplied element if no matching inner elements are given.
public withDefault ( mixed $value, mixed $key = null ) : Pinq\Iterators\IJoinToIterator
$value mixed
$key mixed
Результат Pinq\Iterators\IJoinToIterator