src/LINEBot/MessageBuilder/AudioMessageBuilder.php
public function buildMessage()
    {
        if (!empty($this->message)) {
            return $this->message;
        }

        $audioMessage = [
            'type' => MessageType::AUDIO,
            'originalContentUrl' => $this->originalContentUrl,
            'duration' => $this->duration,
        ];

        if ($this->quickReply) {
            $audioMessage['quickReply'] = $this->quickReply->buildQuickReply();
        }

        $this->message[] = $audioMessage;

        return $this->message;
    }
public function buildMessage()
    {
        if (!empty($this->message)) {
            return $this->message;
        }

        $audioMessage = [
            'type' => MessageType::AUDIO,
            'originalContentUrl' => $this->originalContentUrl,
            'duration' => $this->duration,
        ];

        if ($this->quickReply) {
            $audioMessage['quickReply'] = $this->quickReply->buildQuickReply();
        }

        $this->message[] = $audioMessage;

        return $this->message;
    }
public function buildMessage ( ) { if ( ! empty ( $ this -> message ) ) { return $ this -> message ; } $ audioMessage = [ 'type' => MessageType :: AUDIO , 'originalContentUrl' => $ this -> originalContentUrl , 'duration' => $ this -> duration , ] ; if ( $ this -> quickReply ) { $ audioMessage [ 'quickReply' ] = $ this -> quickReply -> buildQuickReply ( ) ; } $ this -> message [ ] = $ audioMessage ; return $ this -> message ; }
Build audio message structure.

@return array
Build audio message structure .