public function max($value)
{
$this->requiresCurrentField();
$this->newObj['$max'][$this->currentField] = $value;
return $this;
}
/** * Updates the value of the field to a specified value if the specified value is greater than the current value of the field. * * @see Expr::max() * @see http://docs.mongodb.org/manual/reference/operator/update/max/ * @param mixed $value * @return self */ public function max($value) { $this->expr->max($value); return $this; }