PHP Интерфейс Pinq\Interfaces\IJoiningToTraversable

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

to() публичный Метод

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
Результат Pinq\ITraversable

withDefault() публичный Метод

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
Результат Pinq\Interfaces\IJoiningToTraversable