Durable Workflow PHP SDK — API Reference

Guides

CancellationRequest
in package

FinalYes

Server-owned request identity, deadline and opaque history refresh location.

Table of Contents

Properties

$cleanupDeadlineAt  : string
$context  : CancellationContext|null
$historyRefreshPageToken  : string|null
$requestedAt  : string
$requestId  : string

Methods

fromHistoryPayload()  : self
fromObservation()  : self
withHistoryRefreshPageToken()  : self
Preserve the canonical snapshot while retaining the observed refresh route.
__construct()  : mixed
text()  : string
timestamp()  : DateTimeImmutable
validated()  : self

Properties

Methods

fromHistoryPayload()

public static fromHistoryPayload(array<string, mixed> $payload, string $recordedAt) : self
Parameters
$payload : array<string, mixed>
$recordedAt : string
Return values
self

fromObservation()

public static fromObservation(array<string, mixed> $value) : self
Parameters
$value : array<string, mixed>
Return values
self

withHistoryRefreshPageToken()

Preserve the canonical snapshot while retaining the observed refresh route.

public withHistoryRefreshPageToken(string|null $pageToken) : self
Parameters
$pageToken : string|null
Return values
self

__construct()

private __construct(string $requestId, string $requestedAt, string $cleanupDeadlineAt, string|null $historyRefreshPageToken[, CancellationContext|null $context = null ]) : mixed
Parameters
$requestId : string
$requestedAt : string
$cleanupDeadlineAt : string
$historyRefreshPageToken : string|null
$context : CancellationContext|null = null

text()

private static text(array<string, mixed> $value, string $key) : string
Parameters
$value : array<string, mixed>
$key : string
Return values
string

timestamp()

private static timestamp(string $value) : DateTimeImmutable
Parameters
$value : string
Return values
DateTimeImmutable

validated()

private static validated(string $requestId, string $requestedAt, string $cleanupDeadlineAt, string|null $historyRefreshPageToken[, CancellationContext|null $context = null ]) : self
Parameters
$requestId : string
$requestedAt : string
$cleanupDeadlineAt : string
$historyRefreshPageToken : string|null
$context : CancellationContext|null = null
Return values
self
On this page

Search results