HandledStamp
in package
implements
StampInterface
FinalYes
Stamp identifying a message handled by the `HandleMessageMiddleware` middleware and storing the handler returned value.
This is used by synchronous command buses expecting a return value and the retry logic to only execute handlers that didn't succeed.
Tags
Table of Contents
Interfaces
- StampInterface
- An envelope stamp related to a message.
Properties
- $handlerName : string
- $result : mixed
Methods
- __construct() : mixed
- fromDescriptor() : self
- getHandlerName() : string
- getResult() : mixed
Properties
$handlerName
private
string
$handlerName
$result
private
mixed
$result
Methods
__construct()
public
__construct(mixed $result, string $handlerName) : mixed
Parameters
- $result : mixed
- $handlerName : string
fromDescriptor()
public
static fromDescriptor(HandlerDescriptor $handler, mixed $result) : self
Parameters
- $handler : HandlerDescriptor
- $result : mixed
Return values
selfgetHandlerName()
public
getHandlerName() : string
Return values
stringgetResult()
public
getResult() : mixed