PHP Interface Pinq\Iterators\IJoinToIterator

Author: Elliot Levin ([email protected])
Inheritance: extends Pinq\Iterators\IWrapperIterator
Afficher le fichier Open project: timetoogo/pinq Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

projectTo() public méthode

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
Résultat Traversable

walk() public méthode

Walks the joined elements
public walk ( callable $function ) : void
$function callable
Résultat void

withDefault() public méthode

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
Résultat Pinq\Iterators\IJoinToIterator