protected function attachmentMessageToArray()
    {
        $message = [];
        $message['recipient'] = $this->recipient;
        $message['notification_type'] = $this->notificationType;
        $message['message']['attachment']['type'] = $this->attachmentType;
        $message['message']['attachment']['payload']['url'] = $this->attachmentUrl;

        return $message;
    }
protected function attachmentMessageToArray()
    {
        $message = [];
        $message['recipient'] = $this->recipient;
        $message['notification_type'] = $this->notificationType;
        $message['message']['attachment']['type'] = $this->attachmentType;
        $message['message']['attachment']['payload']['url'] = $this->attachmentUrl;

        return $message;
    }
protected function attachmentMessageToArray ( ) { $ message = [ ] ; $ message [ 'recipient' ] = $ this -> recipient ; $ message [ 'notification_type' ] = $ this -> notificationType ; $ message [ 'message' ] [ 'attachment' ] [ 'type' ] = $ this -> attachmentType ; $ message [ 'message' ] [ 'attachment' ] [ 'payload' ] [ 'url' ] = $ this -> attachmentUrl ; return $ message ; }
Returns message for attachment message.

@return array
Returns message for attachment message .