protected function textMessageToArray()
    {
        $message = [];
        $message['recipient'] = $this->recipient;
        $message['notification_type'] = $this->notificationType;
        $message['message']['text'] = $this->text;

        return $message;
    }
protected function textMessageToArray()
    {
        $message = [];
        $message['recipient'] = $this->recipient;
        $message['notification_type'] = $this->notificationType;
        $message['message']['text'] = $this->text;

        return $message;
    }
protected function textMessageToArray ( ) { $ message = [ ] ; $ message [ 'recipient' ] = $ this -> recipient ; $ message [ 'notification_type' ] = $ this -> notificationType ; $ message [ 'message' ] [ 'text' ] = $ this -> text ; return $ message ; }
Returns message for simple text message.

@return array
Returns message for simple text message .