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

        $templateMessage = [
            'type' => MessageType::TEMPLATE,
            'altText' => $this->altText,
            'template' => $this->templateBuilder->buildTemplate(),
        ];

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

        $this->message[] = $templateMessage;

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

        $templateMessage = [
            'type' => MessageType::TEMPLATE,
            'altText' => $this->altText,
            'template' => $this->templateBuilder->buildTemplate(),
        ];

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

        $this->message[] = $templateMessage;

        return $this->message;
    }
public function buildMessage ( ) { if ( ! empty ( $ this -> message ) ) { return $ this -> message ; } $ templateMessage = [ 'type' => MessageType :: TEMPLATE , 'altText' => $ this -> altText , 'template' => $ this -> templateBuilder -> buildTemplate ( ) , ] ; if ( $ this -> quickReply ) { $ templateMessage [ 'quickReply' ] = $ this -> quickReply -> buildQuickReply ( ) ; } $ this -> message [ ] = $ templateMessage ; return $ this -> message ; }
Builds template message structure.

@return array
Builds template message structure .