ScopedCancellationContext
in package
FinalYes
Immutable original scope ancestry carried by a candidate cooperative child request.
Table of Contents
Constants
- SCHEMA : mixed = 'durable-workflow.scoped-cancellation-context/v1'
Properties
- $lineage : array<string|int, mixed>
- $parentRequestId : string|null
- $reason : string|null
- $requester : array<string, string>
- $requestId : string
- $rootContext : CancellationContext
- $rootRequestId : string
- $rootScopeId : string
- $rootWorkflowInstanceId : string
- $rootWorkflowRunId : string
- $scopeId : string
- $source : string
- $workflowInstanceId : string
- $workflowRunId : string
- $authorityDeadline : DateTimeImmutable|null
- $cleanupDeadline : DateTimeImmutable
- $replayClock : callable(): DateTimeImmutable|null
Methods
- deadline() : DateTimeImmutable
- fromArray() : self
- remaining() : float
- Remaining scoped budget at the consumed boundary, never the host clock.
- requestedAt() : DateTimeImmutable
- rootDeadline() : DateTimeImmutable
- toArray() : array<string, mixed>
- __construct() : mixed
- assertKeys() : void
- text() : string
Constants
SCHEMA
public
mixed
SCHEMA
= 'durable-workflow.scoped-cancellation-context/v1'
Properties
$lineage read-only
public
array<string|int, mixed>
$lineage
$parentRequestId read-only
public
string|null
$parentRequestId
$reason read-only
public
string|null
$reason
$requester read-only
public
array<string, string>
$requester
$requestId read-only
public
string
$requestId
$rootContext read-only
public
CancellationContext
$rootContext
$rootRequestId read-only
public
string
$rootRequestId
$rootScopeId read-only
public
string
$rootScopeId
$rootWorkflowInstanceId read-only
public
string
$rootWorkflowInstanceId
$rootWorkflowRunId read-only
public
string
$rootWorkflowRunId
$scopeId read-only
public
string
$scopeId
$source read-only
public
string
$source
$workflowInstanceId read-only
public
string
$workflowInstanceId
$workflowRunId read-only
public
string
$workflowRunId
$authorityDeadline
private
DateTimeImmutable|null
$authorityDeadline
= null
$cleanupDeadline read-only
private
DateTimeImmutable
$cleanupDeadline
$replayClock
private
callable(): DateTimeImmutable|null
$replayClock
= null
Methods
deadline()
public
deadline() : DateTimeImmutable
Return values
DateTimeImmutablefromArray()
public
static fromArray(array<string, mixed> $snapshot) : self
Parameters
- $snapshot : array<string, mixed>
Return values
selfremaining()
Remaining scoped budget at the consumed boundary, never the host clock.
public
remaining() : float
Return values
floatrequestedAt()
public
requestedAt() : DateTimeImmutable
Return values
DateTimeImmutablerootDeadline()
public
rootDeadline() : DateTimeImmutable
Return values
DateTimeImmutabletoArray()
public
toArray() : array<string, mixed>
Return values
array<string, mixed>__construct()
private
__construct(CancellationContext $rootContext, array<int, array{request_id: string, workflow_instance_id: string, workflow_run_id: string, scope_id: string, cleanup_deadline_at: string}> $lineage, DateTimeImmutable $cleanupDeadline) : mixed
Parameters
- $rootContext : CancellationContext
- $lineage : array<int, array{request_id: string, workflow_instance_id: string, workflow_run_id: string, scope_id: string, cleanup_deadline_at: string}>
- $cleanupDeadline : DateTimeImmutable
assertKeys()
private
static assertKeys(array<string, mixed> $value, array<int, string> $keys) : void
Parameters
- $value : array<string, mixed>
- $keys : array<int, string>
text()
private
static text(array<string, mixed> $value, string $key) : string
Parameters
- $value : array<string, mixed>
- $key : string