RuntimePayloads
in package
FinalYes
Resolve only protocol envelope fields, never arbitrary application projections.
Table of Contents
Constants
- SCHEMA : mixed = 'durable-workflow.v2.runtime-external-payload-r...
Properties
- $baseUri : string
- $boundedProgress : bool
- $budget : RequestBudget|null
- $bytes : int
- $fetched : array<string, string>
- $headers : array<string|int, mixed>
- $limit : int
- $progress : callable(): void|null
- $transport : Transport
Methods
- __construct() : mixed
- response() : array<string, mixed>
- validateReference() : array{schema: string, reference_id: string, codec: string, size_bytes: int, sha256: string}
- at() : mixed
- envelope() : mixed
- exportPaths() : array<int, array<int, string>>
- historyPaths() : array<int, array<int, string>>
Constants
SCHEMA
public
mixed
SCHEMA
= 'durable-workflow.v2.runtime-external-payload-reference.v1'
Properties
$baseUri read-only
private
string
$baseUri
$boundedProgress read-only
private
bool
$boundedProgress
= false
$budget read-only
private
RequestBudget|null
$budget
= null
$bytes
private
int
$bytes
= 0
$fetched
private
array<string, string>
$fetched
= []
$headers read-only
private
array<string|int, mixed>
$headers
$limit read-only
private
int
$limit
$progress read-only
private
callable(): void|null
$progress
= null
$transport read-only
private
Transport
$transport
Methods
__construct()
public
__construct(Transport $transport, string $baseUri, array<string, string> $headers, int $limit[, RequestBudget|null $budget = null ][, Closure|null $progress = null ][, bool $boundedProgress = false ]) : mixed
Parameters
- $transport : Transport
- $baseUri : string
- $headers : array<string, string>
- $limit : int
- $budget : RequestBudget|null = null
- $progress : Closure|null = null
- $boundedProgress : bool = false
response()
public
response(array<string, mixed> $response, string $requestPath, bool $worker[, array<int, array<int, int|string>>|null $payloadPaths = null ]) : array<string, mixed>
Parameters
- $response : array<string, mixed>
- $requestPath : string
- $worker : bool
- $payloadPaths : array<int, array<int, int|string>>|null = null
Return values
array<string, mixed>validateReference()
public
static validateReference(mixed $reference) : array{schema: string, reference_id: string, codec: string, size_bytes: int, sha256: string}
Parameters
- $reference : mixed
Return values
array{schema: string, reference_id: string, codec: string, size_bytes: int, sha256: string}at()
private
at(mixed $value, array<int, int|string> $segments) : mixed
Parameters
- $value : mixed
- $segments : array<int, int|string>
envelope()
private
envelope(mixed $value) : mixed
Parameters
- $value : mixed
exportPaths()
private
exportPaths(array<int, string> $prefix) : array<int, array<int, string>>
Parameters
- $prefix : array<int, string>
Return values
array<int, array<int, string>>historyPaths()
private
historyPaths(array<int, string> $prefix) : array<int, array<int, string>>
Parameters
- $prefix : array<int, string>