SignalMethod
in package
FinalYes
Indicates that the method is a signal handler method. Signal method is executed when workflow receives signal. This annotation applies only to workflow interface methods.
Tags
Table of Contents
Properties
- $name : string|null
- $unfinishedPolicy : HandlerUnfinishedPolicy
Methods
- __construct() : mixed
Attributes
#[Attribute]
#[Attribute]
#[NamedArgumentConstructor]
#[NamedArgumentConstructor]
Properties
$name read-only
public
string|null
$name
= null
$unfinishedPolicy read-only
public
HandlerUnfinishedPolicy
$unfinishedPolicy
= HandlerUnfinishedPolicy::WarnAndAbandon
Methods
__construct()
public
__construct([non-empty-string|null $name = null ][, HandlerUnfinishedPolicy $unfinishedPolicy = HandlerUnfinishedPolicy::WarnAndAbandon ]) : mixed
Parameters
- $name : non-empty-string|null = null
-
Signal name.
- $unfinishedPolicy : HandlerUnfinishedPolicy = HandlerUnfinishedPolicy::WarnAndAbandon
-
Actions taken if a workflow exits with a running instance of this handler.