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/
public max ( mixed | self $expression )
$expression mixed | self
Beispiel #1
0
 /**
  * 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 http://docs.mongodb.org/manual/reference/operator/aggregation/max/
  * @see Expr::max
  * @param mixed|Expr $expression
  * @return Operator
  */
 public function max($expression)
 {
     $this->expr->max($expression);
     return $this;
 }