|
|
|
|
@ -109,6 +109,8 @@ interface IFunctionBuilder {
|
|
|
|
|
/**
|
|
|
|
|
* Takes the maximum of all rows in a column
|
|
|
|
|
*
|
|
|
|
|
* If you want to get the maximum value of multiple columns in the same row, use `greatest` instead
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $field the column to maximum
|
|
|
|
|
*
|
|
|
|
|
* @return IQueryFunction
|
|
|
|
|
@ -119,10 +121,38 @@ interface IFunctionBuilder {
|
|
|
|
|
/**
|
|
|
|
|
* Takes the minimum of all rows in a column
|
|
|
|
|
*
|
|
|
|
|
* If you want to get the minimum value of multiple columns in the same row, use `least` instead
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $field the column to minimum
|
|
|
|
|
*
|
|
|
|
|
* @return IQueryFunction
|
|
|
|
|
* @since 18.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function min($field);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Takes the maximum of multiple values
|
|
|
|
|
*
|
|
|
|
|
* If you want to get the maximum value of all rows in a column, use `max` instead
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $x the first input field or number
|
|
|
|
|
* @param mixed $y the first input field or number
|
|
|
|
|
*
|
|
|
|
|
* @return IQueryFunction
|
|
|
|
|
* @since 18.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function greatest($x, $y);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Takes the minimum of multiple values
|
|
|
|
|
*
|
|
|
|
|
* If you want to get the minimum value of all rows in a column, use `min` instead
|
|
|
|
|
*
|
|
|
|
|
* @param mixed $x the first input field or number
|
|
|
|
|
* @param mixed $y the first input field or number
|
|
|
|
|
*
|
|
|
|
|
* @return IQueryFunction
|
|
|
|
|
* @since 18.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function least($x, $y);
|
|
|
|
|
}
|
|
|
|
|
|