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

        $this->component = BuildUtil::removeNullElements([
            'type' => ComponentType::ICON,
            'url' => $this->url,
            'margin' => $this->margin,
            'size' => $this->size,
            'aspectRatio' => $this->aspectRatio,
        ]);

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

        $this->component = BuildUtil::removeNullElements([
            'type' => ComponentType::ICON,
            'url' => $this->url,
            'margin' => $this->margin,
            'size' => $this->size,
            'aspectRatio' => $this->aspectRatio,
        ]);

        return $this->component;
    }
public function build ( ) { if ( isset ( $ this -> component ) ) { return $ this -> component ; } $ this -> component = BuildUtil :: removeNullElements ( [ 'type' => ComponentType :: ICON , 'url' => $ this -> url , 'margin' => $ this -> margin , 'size' => $ this -> size , 'aspectRatio' => $ this -> aspectRatio , ] ) ; return $ this -> component ; }
Builds icon component structure.

@return array
Builds icon component structure .