SimpleSoftwareIO\SMS\Drivers\FlowrouteSMS::processReceive PHP Method

processReceive() protected method

Creates many IncomingMessage objects and sets all of the properties.
protected processReceive ( $rawMessage ) : mixed
$rawMessage
return mixed
    protected function processReceive($rawMessage)
    {
        $incomingMessage = $this->createIncomingMessage();
        $incomingMessage->setRaw($rawMessage);
        $incomingMessage->setFrom((string) $rawMessage->attributes->from);
        $incomingMessage->setMessage((string) $rawMessage->attributes->body);
        $incomingMessage->setId((string) $rawMessage->id);
        $incomingMessage->setTo((string) $rawMessage->attributes->to);
        return $incomingMessage;
    }