PHP Interface Pinq\Interfaces\IJoiningToTraversable

Author: Elliot Levin ([email protected])
Show file Open project: timetoogo/pinq

Public Methods

Method Description
to ( callable $joinFunction ) : Pinq\ITraversable Returns the appropriate values according to the supplied join function.
withDefault ( mixed $value, mixed $key = null ) : Pinq\Interfaces\IJoiningToTraversable Sets the default element value and key to be joined if no matching inner elements are found for any outer element.

Method Details

to() public method

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

withDefault() public method

Sets the default element value and key to be joined if no matching inner elements are found for any outer element.
public withDefault ( mixed $value, mixed $key = null ) : Pinq\Interfaces\IJoiningToTraversable
$value mixed
$key mixed
return Pinq\Interfaces\IJoiningToTraversable