Temporal Docs PHP SDK API Version 2.21 (latest release) Release notes

Documentation

WorkflowStub
in package

Helper class used to convert typed workflow stubs to their untyped alternatives to gain access to cancel() and terminate() methods.

Table of Contents

Methods

fromWorkflow()  : WorkflowStubInterface
Get untyped workflow stub using provided workflow proxy or workflow stub instance.

Methods

fromWorkflow()

Get untyped workflow stub using provided workflow proxy or workflow stub instance.

public static fromWorkflow(object $workflow) : WorkflowStubInterface
Parameters
$workflow : object
Tags
psalm-assert

WorkflowStubInterface|WorkflowProxy $workflow

Return values
WorkflowStubInterface
On this page

Search results