SAM 함수 목록
PHP Manual

SAMMessage->__construct

(PECL sam >= 0.1.0)

SAMMessage->__construct Creates a new Message object

설명

SAMMessage
__construct ([ mixed $body ] )

Creates a new SAMMessage object optionally specifying a message body.

인수

body

The optional body for the message.

예제

Example #1 Creating a message

<?php

$msg 
= new SAMMessage();

?>

Example #2 Creating a message with a simple text payload

<?php

$msg 
= new SAMMessage('This is a simple text message');

?>


SAM 함수 목록
PHP Manual