NexmoMessage
in package
Table of Contents
- $content : string
- The message content.
- $from : string
- The phone number the message should be sent from.
- $type : string
- The message type.
- __construct() : void
- Create a new message instance.
- content() : $this
- Set the message content.
- from() : $this
- Set the phone number the message should be sent from.
- unicode() : $this
- Set the message type.
Properties
$content
The message content.
public
string
$content
$from
The phone number the message should be sent from.
public
string
$from
$type
The message type.
public
string
$type
= 'text'
Methods
__construct()
Create a new message instance.
public
__construct([string $content = '' ]) : void
Parameters
- $content : string = ''
Return values
void —content()
Set the message content.
public
content(string $content) : $this
Parameters
- $content : string
Return values
$this —from()
Set the phone number the message should be sent from.
public
from(string $from) : $this
Parameters
- $from : string
Return values
$this —unicode()
Set the message type.
public
unicode() : $this