public function inc($value) : self
    {
        $this->requiresCurrentField();
        $this->newObj['$inc'][$this->currentField] = $value;
        return $this;
    }
public function inc($value) : self
    {
        $this->requiresCurrentField();
        $this->newObj['$inc'][$this->currentField] = $value;
        return $this;
    }
public function inc ( $ value ) : self { $ this -> requiresCurrentField ( ) ; $ this -> newObj [ '$inc' ] [ $ this -> currentField ] = $ value ; return $ this ; }
Increment the current field.

If the field does not exist, it will be set to this value.

@see Builder::inc()
@see http://docs.mongodb.org/manual/reference/operator/inc/

@param float|int $value
Increment the current field .