ReturnMessage Class

class ReturnMessage

Represents a return message

Implements ItemInterface

__construct(AsyncMessage|string $value)

Create a new ReturnMessage

Parameters:
  • $value (AsyncMessage|string) – The return value

Returns:

A new instance of ReturnMessage with the comment

Return type:

ReturnMessage

withComment(string $comment)

Set a comment for the ReturnMessage

Parameters:
  • $comment (string) – The comment

Returns:

A new instance of ReturnMessage with the comment

Return type:

ReturnMessage