DecrementOptions
in package
Table of Contents
- $delta : int
- $durabilityLevel : string|null
- $durabilityTimeoutSeconds : int|null
- $initialValue : int|null
- $timeoutMilliseconds : int|null
- build() : DecrementOptions
- Static helper to keep code more readable
- delta() : DecrementOptions
- Sets the value to increment the counter by.
- durabilityLevel() : DecrementOptions
- Sets the durability level to enforce when writing the document.
- initial() : DecrementOptions
- Sets the value to initialize the counter to if the document does not exist.
- timeout() : DecrementOptions
- Sets the operation timeout in milliseconds.
Properties
$delta
private
int
$delta
= 1
$durabilityLevel
private
string|null
$durabilityLevel
= null
$durabilityTimeoutSeconds
private
int|null
$durabilityTimeoutSeconds
= null
$initialValue
private
int|null
$initialValue
= null
$timeoutMilliseconds
private
int|null
$timeoutMilliseconds
= null
Methods
build()
Static helper to keep code more readable
public
static build() : DecrementOptions
Tags
Return values
DecrementOptions —delta()
Sets the value to increment the counter by.
public
delta(int $decrement) : DecrementOptions
Parameters
- $decrement : int
-
the value to increment by
Tags
Return values
DecrementOptions —durabilityLevel()
Sets the durability level to enforce when writing the document.
public
durabilityLevel(string|int $level, int|null $timeoutSeconds) : DecrementOptions
Parameters
- $level : string|int
-
the durability level to enforce
- $timeoutSeconds : int|null
Tags
Return values
DecrementOptions —initial()
Sets the value to initialize the counter to if the document does not exist.
public
initial(int $initialValue) : DecrementOptions
Parameters
- $initialValue : int
-
the initial value to use if counter does not exist
Tags
Return values
DecrementOptions —timeout()
Sets the operation timeout in milliseconds.
public
timeout(int $milliseconds) : DecrementOptions
Parameters
- $milliseconds : int
-
the operation timeout to apply