PHP Trait SimpleSoftwareIO\SMS\DoesNotReceive

Show file Open project: simplesoftwareio/simple-sms

Public Methods

Method Description
checkMessages ( array $options = [] ) : array Checks the server for messages and returns their results.
getMessage ( string | integer $messageId ) Gets a single message by it's ID.
receive ( mixed $raw ) Receives an incoming message via REST call.

Protected Methods

Method Description
processReceive ( string $rawMessage ) : mixed Creates many IncomingMessage objects and sets all of the properties.

Method Details

checkMessages() public method

Checks the server for messages and returns their results.
public checkMessages ( array $options = [] ) : array
$options array
return array

getMessage() public method

Gets a single message by it's ID.
public getMessage ( string | integer $messageId )
$messageId string | integer

processReceive() protected method

Creates many IncomingMessage objects and sets all of the properties.
protected processReceive ( string $rawMessage ) : mixed
$rawMessage string
return mixed

receive() public method

Receives an incoming message via REST call.
public receive ( mixed $raw )
$raw mixed