PHP Interface Pinq\Interfaces\IJoiningToCollection

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

Méthodes publiques

Méthode 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 méthode

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)
Résultat void

to() public méthode

{@inheritDoc}
public to ( callable $joinFunction ) : Pinq\ICollection
$joinFunction callable
Résultat Pinq\ICollection

withDefault() public méthode

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