Documentation

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

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
since
4.0.0
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
since
4.0.0
Return values
MutateCounterSpec

        

Search results