Documentation

IncrementOptions
in package

Table of Contents

$delta  : int
$durabilityLevel  : string|null
$expirySeconds  : int|null
$expiryTimestamp  : int|null
$initialValue  : int|null
$parentSpan  : RequestSpan|null
$timeoutMilliseconds  : int|null
build()  : IncrementOptions
Static helper to keep code more readable
delta()  : IncrementOptions
Sets the value to increment the counter by.
durabilityLevel()  : IncrementOptions
Sets the durability level to enforce when writing the document.
expiry()  : IncrementOptions
Sets the expiry time for the document.
initial()  : IncrementOptions
Sets the value to initialize the counter to if the document does not exist.
parentSpan()  : IncrementOptions
Sets the parent span.
timeout()  : IncrementOptions
Sets the operation timeout in milliseconds.

Properties

Methods

expiry()

Sets the expiry time for the document.

public expiry(int|DateTimeInterface $seconds) : IncrementOptions
Parameters
$seconds : int|DateTimeInterface

the relative expiry time in seconds or DateTimeInterface object for absolute point in time

Tags
since
4.1.5
Return values
IncrementOptions —

initial()

Sets the value to initialize the counter to if the document does not exist.

public initial(int $initialValue) : IncrementOptions
Parameters
$initialValue : int

the initial value to use if counter does not exist

Tags
since
4.0.0
Return values
IncrementOptions —

        

Search results