Durable Workflow PHP SDK — API Reference

Guides

LaravelWorkflowClientFake
in package
implements LaravelWorkflowClientInterface

FinalYes

Laravel-native fake for class-shaped workflow starts and handles.

Table of Contents

Interfaces

LaravelWorkflowClientInterface
Laravel-native workflow starts and handles resolved from attributed service classes.

Properties

$client  : WorkflowClientFake
$configuration  : ServiceConfiguration
$services  : WorkflowServiceResolver
$workflows  : LaravelWorkflowClient

Methods

__construct()  : mixed
assertQueryRequested()  : void
assertResultRequested()  : void
assertSignalSent()  : void
assertUpdateRequested()  : void
assertWorkflowStarted()  : void
handle()  : WorkflowHandleInterface
setQueryResult()  : self
setUpdateResult()  : self
setWorkflowResult()  : self
start()  : WorkflowHandleInterface
workflowClient()  : WorkflowClientFake
Framework-neutral fake retained for the low-level injectable interface.

Properties

Methods

assertQueryRequested()

public assertQueryRequested(string $workflowId, string $name[, array<int, mixed>|null $arguments = null ]) : void
Parameters
$workflowId : string
$name : string
$arguments : array<int, mixed>|null = null

assertResultRequested()

public assertResultRequested(string $workflowId) : void
Parameters
$workflowId : string

assertSignalSent()

public assertSignalSent(string $workflowId, string $name[, array<int, mixed>|null $arguments = null ]) : void
Parameters
$workflowId : string
$name : string
$arguments : array<int, mixed>|null = null

assertUpdateRequested()

public assertUpdateRequested(string $workflowId, string $name[, array<int, mixed>|null $arguments = null ]) : void
Parameters
$workflowId : string
$name : string
$arguments : array<int, mixed>|null = null

assertWorkflowStarted()

public assertWorkflowStarted(class-string $workflowService[, array<int, mixed>|null $input = null ][, string|null $workflowId = null ][, WorkflowStartOptions|null $options = null ]) : void
Parameters
$workflowService : class-string
$input : array<int, mixed>|null = null
$workflowId : string|null = null
$options : WorkflowStartOptions|null = null

setQueryResult()

public setQueryResult(string $workflowId, string $name, mixed $result) : self
Parameters
$workflowId : string
$name : string
$result : mixed
Return values
self

setUpdateResult()

public setUpdateResult(string $workflowId, string $name, mixed $result) : self
Parameters
$workflowId : string
$name : string
$result : mixed
Return values
self

setWorkflowResult()

public setWorkflowResult(string $workflowId, mixed $result) : self
Parameters
$workflowId : string
$result : mixed
Return values
self
On this page

Search results