Durable Workflow PHP SDK — API Reference

Guides

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
$bytes  : int
$fetched  : array<string, string>
$headers  : array<string|int, mixed>
$limit  : int
$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

Methods

__construct()

public __construct(Transport $transport, string $baseUri, array<string, string> $headers, int $limit) : mixed
Parameters
$transport : Transport
$baseUri : string
$headers : array<string, string>
$limit : int

response()

public response(array<string, mixed> $response, string $requestPath, bool $worker) : array<string, mixed>
Parameters
$response : array<string, mixed>
$requestPath : string
$worker : bool
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, string> $segments) : mixed
Parameters
$value : mixed
$segments : array<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>
Return values
array<int, array<int, string>>
On this page

Search results