Documentation

Context
in package
implements ContextInterface

FinalYes

Table of Contents

Interfaces

ContextInterface

Properties

$deadline  : DateTimeInterface|null
$metadata  : array<string|int, mixed>
$options  : array<string|int, mixed>
$retryOptions  : RetryOptions
$timeout  : DateInterval|null

Methods

default()  : self
getDeadline()  : DateTimeInterface|null
getMetadata()  : array<string|int, mixed>
getOptions()  : array<string|int, mixed>
getRetryOptions()  : RetryOptions
withDeadline()  : $this
withMetadata()  : ContextInterface
withOptions()  : ContextInterface
withRetryOptions()  : ContextInterface
withTimeout()  : $this
__construct()  : mixed

Properties

$deadline

private DateTimeInterface|null $deadline = null

$metadata

private array<string|int, mixed> $metadata

$options

private array<string|int, mixed> $options = []

$timeout

private DateInterval|null $timeout = null

Methods

default()

public static default() : self
Return values
self

getDeadline()

public getDeadline() : DateTimeInterface|null
Return values
DateTimeInterface|null

getMetadata()

public getMetadata() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

withDeadline()

public withDeadline(DateTimeInterface $deadline) : $this
Parameters
$deadline : DateTimeInterface
Return values
$this

withTimeout()

public withTimeout(mixed $timeout[, string $format = DateInterval::FORMAT_SECONDS ]) : $this
Parameters
$timeout : mixed
$format : string = DateInterval::FORMAT_SECONDS
Return values
$this

__construct()

private __construct() : mixed

        
On this page

Search results