AsyncMessage Class¶
- class AsyncMessage¶
Represents an asynchronous message
Implements
ItemInterface- __construct(string $message, Participant $recipient, ?Participant $sender = null)¶
Create a new AsyncMessage
- param string $message:
The message
- param Participant $recipient:
The recipient
- param ?Participant $sender:
The sender (default: External sender)
- returns:
A new
AsyncMessageinstance- rtype:
AsyncMessage
- withComment(string $comment)¶
Set a comment for the AsyncMessage
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
AsyncMessagewith the comment- Return type: