PHP Interface Pinq\Interfaces\IJoiningOnTraversable

Author: Elliot Levin ([email protected])
Inheritance: extends Pinq\Interfaces\IJoiningToTraversable
Mostra file Open project: timetoogo/pinq

Public Methods

Method Description
on ( callable $function ) : Pinq\Interfaces\IJoiningToTraversable Filters the join values according to the supplied function.
onEquality ( callable $outerKeyFunction, callable $innerKeyFunction ) : Pinq\Interfaces\IJoiningToTraversable Filters the join values via strict equality (===) between the outer and inner keys according to the supplied key functions. Note that null keys are ignored.

Method Details

on() public method

Both values and keys will be passed as arguments to the supplied function as (outerValue, innerValue, outerKey, innerKey).
public on ( callable $function ) : Pinq\Interfaces\IJoiningToTraversable
$function callable
return Pinq\Interfaces\IJoiningToTraversable

onEquality() public method

Filters the join values via strict equality (===) between the outer and inner keys according to the supplied key functions. Note that null keys are ignored.
public onEquality ( callable $outerKeyFunction, callable $innerKeyFunction ) : Pinq\Interfaces\IJoiningToTraversable
$outerKeyFunction callable
$innerKeyFunction callable
return Pinq\Interfaces\IJoiningToTraversable