src/LINEBot/MessageBuilder/Flex/BubbleStylesBuilder.php
public function build()
    {
        if (isset($this->styles)) {
            return $this->styles;
        }

        $this->styles = BuildUtil::removeNullElements([
            'header' => BuildUtil::build($this->headerStyleBuilder),
            'hero' => BuildUtil::build($this->heroStyleBuilder),
            'body' => BuildUtil::build($this->bodyStyleBuilder),
            'footer' => BuildUtil::build($this->footerStyleBuilder),
        ]);

        return $this->styles;
    }
public function build()
    {
        if (isset($this->styles)) {
            return $this->styles;
        }

        $this->styles = BuildUtil::removeNullElements([
            'header' => BuildUtil::build($this->headerStyleBuilder),
            'hero' => BuildUtil::build($this->heroStyleBuilder),
            'body' => BuildUtil::build($this->bodyStyleBuilder),
            'footer' => BuildUtil::build($this->footerStyleBuilder),
        ]);

        return $this->styles;
    }
public function build ( ) { if ( isset ( $ this -> styles ) ) { return $ this -> styles ; } $ this -> styles = BuildUtil :: removeNullElements ( [ 'header' => BuildUtil :: build ( $ this -> headerStyleBuilder ) , 'hero' => BuildUtil :: build ( $ this -> heroStyleBuilder ) , 'body' => BuildUtil :: build ( $ this -> bodyStyleBuilder ) , 'footer' => BuildUtil :: build ( $ this -> footerStyleBuilder ) , ] ) ; return $ this -> styles ; }
Builds bubble styles structure.

@return array
Builds bubble styles structure .