PHP Interface Pinq\Interfaces\IJoiningToCollection

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

Public Methods

Method Description
apply ( callable $applyFunction ) : void Walks the elements with the supplied function.
to ( callable $joinFunction ) : Pinq\ICollection {@inheritDoc}
withDefault ( $value, $key = null ) : Pinq\Interfaces\IJoiningToCollection {@inheritDoc}

Method Details

apply() 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 apply ( callable $applyFunction ) : void
$applyFunction callable Called with parameters (&outerValue, innerValue, outerKey, innerKey)
return void

to() public method

{@inheritDoc}
public to ( callable $joinFunction ) : Pinq\ICollection
$joinFunction callable
return Pinq\ICollection

withDefault() public method

{@inheritDoc}
public withDefault ( $value, $key = null ) : Pinq\Interfaces\IJoiningToCollection
return Pinq\Interfaces\IJoiningToCollection