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()  : self
withOptions()  : self
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

withMetadata()

public withMetadata(array<string|int, mixed> $metadata) : self
Parameters
$metadata : array<string|int, mixed>
Return values
self

withOptions()

public withOptions(array<string|int, mixed> $options) : self
Parameters
$options : array<string|int, mixed>
Return values
self

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