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 AsyncMessage instance

rtype:

AsyncMessage

withComment(string $comment)

Set a comment for the AsyncMessage

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of AsyncMessage with the comment

Return type:

AsyncMessage