PHP Class SimpleSoftwareIO\SMS\Drivers\AbstractSMS

Exibir arquivo Open project: simplesoftwareio/simple-sms

Protected Methods

Method Description
createIncomingMessage ( ) : IncomingMessage Creates a new IncomingMessage instance.
makeMessage ( string $rawMessage ) : mixed Creates a single IncomingMessage object.
makeMessages ( string $rawMessages ) : array Creates many IncomingMessage objects.
processReceive ( string $rawMessage ) : mixed Creates many IncomingMessage objects and sets all of the properties.
throwNotSentException ( string $message, null | integer $code = null ) Throw a not sent exception

Method Details

createIncomingMessage() protected method

Creates a new IncomingMessage instance.
protected createIncomingMessage ( ) : IncomingMessage
return SimpleSoftwareIO\SMS\IncomingMessage

makeMessage() protected method

Creates a single IncomingMessage object.
protected makeMessage ( string $rawMessage ) : mixed
$rawMessage string
return mixed

makeMessages() protected method

Creates many IncomingMessage objects.
protected makeMessages ( string $rawMessages ) : array
$rawMessages string
return array

processReceive() abstract protected method

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

throwNotSentException() protected method

Throw a not sent exception
protected throwNotSentException ( string $message, null | integer $code = null )
$message string
$code null | integer