PHP Class SimpleSoftwareIO\SMS\IncomingMessage

Show file Open project: simplesoftwareio/simple-sms

Protected Properties

Property Type Description
$from string Holds who a message came from.
$id string Holds the message ID.
$message string Holds the message body.
$raw mixed Holds the raw data from a provider.
$to string Holds the to address.

Public Methods

Method Description
from ( ) : string Returns the from address.
id ( ) : string Returns the message id.
message ( ) : string Returns the message body.
raw ( ) : mixed Returns the raw data.
setFrom ( string $from ) Sets the from address.
setId ( string $id ) Sets the message id.
setMessage ( string $message ) Sets the message body.
setRaw ( mixed $raw ) Sets the raw data.
setTo ( string $to ) Sets the to address.
to ( ) : string Returns the to address.

Method Details

from() public method

Returns the from address.
public from ( ) : string
return string

id() public method

Returns the message id.
public id ( ) : string
return string

message() public method

Returns the message body.
public message ( ) : string
return string

raw() public method

Returns the raw data.
public raw ( ) : mixed
return mixed

setFrom() public method

Sets the from address.
public setFrom ( string $from )
$from string

setId() public method

Sets the message id.
public setId ( string $id )
$id string

setMessage() public method

Sets the message body.
public setMessage ( string $message )
$message string

setRaw() public method

Sets the raw data.
public setRaw ( mixed $raw )
$raw mixed

setTo() public method

Sets the to address.
public setTo ( string $to )
$to string

to() public method

Returns the to address.
public to ( ) : string
return string

Property Details

$from protected property

Holds who a message came from.
protected string $from
return string

$id protected property

Holds the message ID.
protected string $id
return string

$message protected property

Holds the message body.
protected string $message
return string

$raw protected property

Holds the raw data from a provider.
protected mixed $raw
return mixed

$to protected property

Holds the to address.
protected string $to
return string