PHP Interface Pinq\Iterators\IJoinToIterator

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

Public Methods

Method 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 method

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
return Traversable

walk() public method

Walks the joined elements
public walk ( callable $function ) : void
$function callable
return void

withDefault() public method

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
return Pinq\Iterators\IJoinToIterator