PHP 인터페이스 Pinq\IAggregatable

저자: Elliot Levin ([email protected])
상속: extends Countable
파일 보기 프로젝트 열기: timetoogo/pinq

공개 메소드들

메소드 설명
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