TranscriptSentMiddleware
in package
implements
SentMiddleware
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- handle() : SentMessage
Properties
$state read-only
private
StateAdapter
$state
$transcripts read-only
private
TranscriptsApi
$transcripts
Methods
__construct()
public
__construct(TranscriptsApi $transcripts, StateAdapter $state) : mixed
Parameters
- $transcripts : TranscriptsApi
- $state : StateAdapter
handle()
public
handle(string $threadId, PostableMessage $message, SentMessage $result, Adapter $adapter, string $operation, callable $next) : SentMessage
Parameters
- $threadId : string
- $message : PostableMessage
- $result : SentMessage
- $adapter : Adapter
- $operation : string
- $next : callable