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
ReturnMessagewith the comment- Return type:
- withComment(string $comment)¶
Set a comment for the ReturnMessage
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
ReturnMessagewith the comment- Return type: