LaravelWorkflowClient
in package
implements
LaravelWorkflowClientInterface
FinalYes
Resolves configured Laravel workflow services to their public protocol types.
Table of Contents
Interfaces
- LaravelWorkflowClientInterface
- Laravel-native workflow starts and handles resolved from attributed service classes.
Properties
- $client : WorkflowClientInterface
- $configuration : ServiceConfiguration
- $services : WorkflowServiceResolver
Methods
- __construct() : mixed
- handle() : WorkflowHandleInterface
- start() : WorkflowHandleInterface
- workflowId() : string
Properties
$client read-only
private
WorkflowClientInterface
$client
$configuration read-only
private
ServiceConfiguration
$configuration
$services read-only
private
WorkflowServiceResolver
$services
Methods
__construct()
public
__construct(WorkflowClientInterface $client, ServiceConfiguration $configuration[, WorkflowServiceResolver|null $services = null ]) : mixed
Parameters
- $client : WorkflowClientInterface
- $configuration : ServiceConfiguration
- $services : WorkflowServiceResolver|null = null
handle()
public
handle(class-string $workflowService, string $workflowId[, string|null $selectedRunId = null ]) : WorkflowHandleInterface
Parameters
- $workflowService : class-string
- $workflowId : string
- $selectedRunId : string|null = null
Return values
WorkflowHandleInterfacestart()
public
start(class-string $workflowService[, array<int, mixed> $input = [] ][, string|null $workflowId = null ][, WorkflowStartOptions|null $options = null ]) : WorkflowHandleInterface
Parameters
- $workflowService : class-string
- $input : array<int, mixed> = []
- $workflowId : string|null = null
- $options : WorkflowStartOptions|null = null
Return values
WorkflowHandleInterfaceworkflowId()
private
workflowId(string $workflowType) : string
Parameters
- $workflowType : string