PHP Интерфейс Pinq\IAggregatable

Автор: Elliot Levin ([email protected])
Наследование: extends Countable
Показать файл Открыть проект

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

Метод Описание
aggregate ( callable $function ) : mixed Aggregates the values with the supplied function.
all ( callable $function = null ) : boolean Returns a boolean of if all the values evaluate to true.
any ( callable $function = null ) : boolean Returns a boolean of if any of the values evaluate to true.
average ( callable $function = null ) : integer | double | null Returns the average of the values.
count ( ) : integer Returns the amount of the values.
implode ( string $delimiter, callable $function = null ) : string Returns a string of all the values concatenated by the delimiter.
isEmpty ( ) : boolean Returns whether the traversable contains no elements.
maximum ( callable $function = null ) : mixed Returns the maximum value.
minimum ( callable $function = null ) : mixed Returns the maximum value.
sum ( callable $function = null ) : integer | double | null Returns the sum of the values.

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

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

Aggregates the values with the supplied function.
public aggregate ( callable $function ) : mixed
$function callable The aggregate function, parameters: ($aggregate, $step)
Результат mixed

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

Returns a boolean of if all the values evaluate to true.
public all ( callable $function = null ) : boolean
$function callable The function which will return the values.
Результат boolean

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

Returns a boolean of if any of the values evaluate to true.
public any ( callable $function = null ) : boolean
$function callable The function which will return the values.
Результат boolean

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

Returns the average of the values.
public average ( callable $function = null ) : integer | double | null
$function callable The function which will return the values.
Результат integer | double | null

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

Returns the amount of the values.
public count ( ) : integer
Результат integer

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

Returns a string of all the values concatenated by the delimiter.
public implode ( string $delimiter, callable $function = null ) : string
$delimiter string The string to delimit the values by.
$function callable The function which will return the values.
Результат string

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

Returns whether the traversable contains no elements.
public isEmpty ( ) : boolean
Результат boolean

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

Returns the maximum value.
public maximum ( callable $function = null ) : mixed
$function callable The function which will return the values.
Результат mixed

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

Returns the maximum value.
public minimum ( callable $function = null ) : mixed
$function callable The function which will return the values.
Результат mixed

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

Returns the sum of the values.
public sum ( callable $function = null ) : integer | double | null
$function callable The function which will return the values.
Результат integer | double | null