EnforceMessagingWindow
in package
implements
SendingMiddleware
Table of Contents
Interfaces
Properties
- $state : StateAdapter
- $templateFallback : mixed
Methods
- __construct() : mixed
- handle() : PostableMessage|null
Properties
$state
protected
StateAdapter
$state
$templateFallback read-only
protected
mixed
$templateFallback
= null
Methods
__construct()
public
__construct(StateAdapter $state[, callable(PostableMessage): Array|null $templateFallback = null ]) : mixed
Parameters
- $state : StateAdapter
- $templateFallback : callable(PostableMessage): Array|null = null
handle()
public
handle(string $threadId, PostableMessage $message, Adapter $adapter, string $operation, callable $next) : PostableMessage|null
Parameters
- $threadId : string
- $message : PostableMessage
- $adapter : Adapter
- $operation : string
- $next : callable