SAMMessage::__construct

(PECL sam >= 0.1.0)
Creates a new Message object
SAMMessage::__construct ([ mixed $body ] )

Creates a new SAMMessage object optionally specifying a message body.

Parameters:
body

The optional body for the message.

Examples:
Creating a message
1
2
3
4
5
<?php
 
$msg new SAMMessage();
 
?>
Creating a message with a simple text payload
1
2
3
4
5
<?php
 
$msg new SAMMessage('This is a simple text message');
 
?>
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.