inc() public method

If the field does not exist, it will be set to this value.
See also: Builder::inc()
See also: http://docs.mongodb.org/manual/reference/operator/inc/
public inc ( float | integer $value )
$value float | integer
Esempio n. 1
0
 /**
  * Increment the current field.
  *
  * If the field does not exist, it will be set to this value.
  *
  * @see Expr::inc()
  * @see http://docs.mongodb.org/manual/reference/operator/inc/
  * @param float|integer $value
  * @return self
  */
 public function inc($value)
 {
     $this->expr->inc($value);
     return $this;
 }