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

        $actions = [];
        foreach ($this->imagemapActionBuilders as $builder) {
            $actions[] = $builder->buildImagemapAction();
        }

        $imagemapMessage = [
            'type' => MessageType::IMAGEMAP,
            'baseUrl' => $this->baseUrl,
            'altText' => $this->altText,
            'baseSize' => $this->baseSizeBuilder->build(),
            'actions' => $actions,
        ];

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

        if ($this->videoBuilder) {
            $imagemapMessage['video'] = $this->videoBuilder->build();
        }

        $this->message[] = $imagemapMessage;

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

        $actions = [];
        foreach ($this->imagemapActionBuilders as $builder) {
            $actions[] = $builder->buildImagemapAction();
        }

        $imagemapMessage = [
            'type' => MessageType::IMAGEMAP,
            'baseUrl' => $this->baseUrl,
            'altText' => $this->altText,
            'baseSize' => $this->baseSizeBuilder->build(),
            'actions' => $actions,
        ];

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

        if ($this->videoBuilder) {
            $imagemapMessage['video'] = $this->videoBuilder->build();
        }

        $this->message[] = $imagemapMessage;

        return $this->message;
    }
public function buildMessage ( ) { if ( ! empty ( $ this -> message ) ) { return $ this -> message ; } $ actions = [ ] ; foreach ( $ this -> imagemapActionBuilders as $ builder ) { $ actions [ ] = $ builder -> buildImagemapAction ( ) ; } $ imagemapMessage = [ 'type' => MessageType :: IMAGEMAP , 'baseUrl' => $ this -> baseUrl , 'altText' => $ this -> altText , 'baseSize' => $ this -> baseSizeBuilder -> build ( ) , 'actions' => $ actions , ] ; if ( $ this -> quickReply ) { $ imagemapMessage [ 'quickReply' ] = $ this -> quickReply -> buildQuickReply ( ) ; } if ( $ this -> videoBuilder ) { $ imagemapMessage [ 'video' ] = $ this -> videoBuilder -> build ( ) ; } $ this -> message [ ] = $ imagemapMessage ; return $ this -> message ; }
Builds imagemap message strucutre.

@return array
Builds imagemap message strucutre .