yii\redis\ActiveQuery::max PHP Метод

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

Returns the maximum of the specified column values.
public max ( string $column, Connection $db = null ) : integer
$column string the column name or expression. Make sure you properly quote column names in the expression.
$db Connection the database connection used to execute the query. If this parameter is not given, the `db` application component will be used.
Результат integer the maximum of the specified column values.
    public function max($column, $db = null)
    {
        return $this->executeScript($db, 'Max', $column);
    }