src/LINEBot/MessageBuilder/Flex/ContainerBuilder/BubbleContainerBuilder.php
public function build()
    {
        if (!empty($this->container)) {
            return $this->container;
        }

        $this->container = BuildUtil::removeNullElements([
            'type' => ContainerType::BUBBLE,
            'direction' => $this->direction,
            'header' => BuildUtil::build($this->headerComponentBuilder),
            'hero' => BuildUtil::build($this->heroComponentBuilder),
            'body' => BuildUtil::build($this->bodyComponentBuilder),
            'footer' => BuildUtil::build($this->footerComponentBuilder),
            'styles' => BuildUtil::build($this->stylesBuilder),
        ]);

        return $this->container;
    }
public function build()
    {
        if (!empty($this->container)) {
            return $this->container;
        }

        $this->container = BuildUtil::removeNullElements([
            'type' => ContainerType::BUBBLE,
            'direction' => $this->direction,
            'header' => BuildUtil::build($this->headerComponentBuilder),
            'hero' => BuildUtil::build($this->heroComponentBuilder),
            'body' => BuildUtil::build($this->bodyComponentBuilder),
            'footer' => BuildUtil::build($this->footerComponentBuilder),
            'styles' => BuildUtil::build($this->stylesBuilder),
        ]);

        return $this->container;
    }
public function build ( ) { if ( ! empty ( $ this -> container ) ) { return $ this -> container ; } $ this -> container = BuildUtil :: removeNullElements ( [ 'type' => ContainerType :: BUBBLE , 'direction' => $ this -> direction , 'header' => BuildUtil :: build ( $ this -> headerComponentBuilder ) , 'hero' => BuildUtil :: build ( $ this -> heroComponentBuilder ) , 'body' => BuildUtil :: build ( $ this -> bodyComponentBuilder ) , 'footer' => BuildUtil :: build ( $ this -> footerComponentBuilder ) , 'styles' => BuildUtil :: build ( $ this -> stylesBuilder ) , ] ) ; return $ this -> container ; }
Builds bubble container structure.

@return array
Builds bubble container structure .