Doctrine\MongoDB\Aggregation\Stage\Project::max PHP Method

max() public method

Returns the highest value that results from applying an expression to each document in a group of documents that share the same group by key.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/max/
See also: Expr::max
Since: 1.3
public max ( mixed | Expr $expression1 ) : Operator
$expression1 mixed | Doctrine\MongoDB\Aggregation\Expr
return Operator
    public function max($expression1)
    {
        $this->expr->max(func_num_args() === 1 ? $expression1 : func_get_args());
        return $this;
    }