Skip to content

Aggregate


  • Full name: \Qubus\Expressive\Aggregate

Methods

count

Return the aggregate count of column

public count(string|null $column = null): float|int

Parameters:

Parameter Type Description
$column string|null - the column name

max

Return the aggregate max count of column

public max(string $column): float|int

Parameters:

Parameter Type Description
$column string - the column name

min

Return the aggregate min count of column

public min(string $column): float|int

Parameters:

Parameter Type Description
$column string - the column name

sum

Return the aggregate sum count of column

public sum(string $column): float|int

Parameters:

Parameter Type Description
$column string - the column name

avg

Return the aggregate average count of column

public avg(string $column): float|int

Parameters:

Parameter Type Description
$column string - the column name

aggregate

public aggregate(string $fn): float|int

Parameters:

Parameter Type Description
$fn string - The function to use for the aggregation