MutateCounterSpec
in package
implements
MutateInSpec
Indicates to increment or decrement a counter value at a path in a document.
Interfaces, Classes, Traits and Enums
- MutateInSpec
- MutateInSpec is an interface for providing subdocument mutation operations.
Table of Contents
- $createPath : bool
- $isXattr : bool
- $path : string
- $value : int
- __construct() : mixed
- build() : MutateCounterSpec
- createPath() : MutateCounterSpec
- xattr() : MutateCounterSpec
Properties
$createPath
private
bool
$createPath
$isXattr
private
bool
$isXattr
$path
private
string
$path
$value
private
int
$value
Methods
__construct()
public
__construct(string $path, int $value[, bool $isXattr = false ][, bool $createPath = false ]) : mixed
Parameters
- $path : string
- $value : int
- $isXattr : bool = false
- $createPath : bool = false
Tags
Return values
mixed —build()
public
static build(string $path, mixed $value[, bool $isXattr = false ][, bool $createPath = false ]) : MutateCounterSpec
Parameters
- $path : string
- $value : mixed
- $isXattr : bool = false
- $createPath : bool = false
Tags
Return values
MutateCounterSpec —createPath()
public
createPath(bool $createPath) : MutateCounterSpec
Parameters
- $createPath : bool
Tags
Return values
MutateCounterSpec —xattr()
public
xattr(bool $isXattr) : MutateCounterSpec
Parameters
- $isXattr : bool