protected function createMessageBody(MessageInterface $message)
    {
        $body = [];
        if ($message instanceof BaseOptionedModel) {
            $body = $message->getOptions();
        }
        $body['message'] = $message->getText();

        return json_encode($body);
    }
protected function createMessageBody(MessageInterface $message)
    {
        $body = [];
        if ($message instanceof BaseOptionedModel) {
            $body = $message->getOptions();
        }
        $body['message'] = $message->getText();

        return json_encode($body);
    }
protected function createMessageBody ( MessageInterface $ message ) { $ body = [ ] ; if ( $ message instanceof BaseOptionedModel ) { $ body = $ message -> getOptions ( ) ; } $ body [ 'message' ] = $ message -> getText ( ) ; return json_encode ( $ body ) ; }
Create message body.

@param MessageInterface $message

@return string
Create message body .