Context
in package
implements
ContextInterface
FinalYes
Table of Contents
Interfaces
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
= []
$retryOptions
private
RetryOptions
$retryOptions
$timeout
private
DateInterval|null
$timeout
= null
Methods
default()
public
static default() : self
Return values
selfgetDeadline()
public
getDeadline() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetMetadata()
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>getRetryOptions()
public
getRetryOptions() : RetryOptions
Return values
RetryOptionswithDeadline()
public
withDeadline(DateTimeInterface $deadline) : $this
Parameters
- $deadline : DateTimeInterface
Return values
$thiswithMetadata()
public
withMetadata(array<string|int, mixed> $metadata) : ContextInterface
Parameters
- $metadata : array<string|int, mixed>
Return values
ContextInterfacewithOptions()
public
withOptions(array<string|int, mixed> $options) : ContextInterface
Parameters
- $options : array<string|int, mixed>
Return values
ContextInterfacewithRetryOptions()
public
withRetryOptions(RetryOptions $options) : ContextInterface
Parameters
- $options : RetryOptions
Return values
ContextInterfacewithTimeout()
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