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

        $this->message = [
            BuildUtil::removeNullElements([
                'type' => MessageType::FLEX,
                'altText' => $this->altText,
                'contents' => $this->containerBuilder->build(),
                'quickReply' => BuildUtil::build($this->quickReply, 'buildQuickReply'),
            ])
        ];

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

        $this->message = [
            BuildUtil::removeNullElements([
                'type' => MessageType::FLEX,
                'altText' => $this->altText,
                'contents' => $this->containerBuilder->build(),
                'quickReply' => BuildUtil::build($this->quickReply, 'buildQuickReply'),
            ])
        ];

        return $this->message;
    }
public function buildMessage ( ) { if ( isset ( $ this -> message ) ) { return $ this -> message ; } $ this -> message = [ BuildUtil :: removeNullElements ( [ 'type' => MessageType :: FLEX , 'altText' => $ this -> altText , 'contents' => $ this -> containerBuilder -> build ( ) , 'quickReply' => BuildUtil :: build ( $ this -> quickReply , 'buildQuickReply' ) , ] ) ] ; return $ this -> message ; }
Builds flex message structure.

@return array
Builds flex message structure .