IconComponentBuilder

A builder class for icon component.
implements LINE\LINEBot\MessageBuilder\Flex\ComponentBuilder
Methods Summary
public
# __construct( string $url , \ComponentMargin|null $margin = NULL, \ComponentIconSize|null $size = NULL, \ComponentIconAspectRatio|null $aspectRatio = NULL )
IconComponentBuilder constructor.
public static
# builder( )
Create empty IconComponentBuilder.
public
# setUrl( string $url )
Set url.
public
# setMargin( \ComponentMargin|string|null $margin )
Set margin.
public
# setSize( \ComponentIconSize|string|null $size )
Set size.
public
# setAspectRatio( \ComponentIconAspectRatio|string|null $aspectRatio )
Set aspectRatio.
public
# setPosition( string|\ComponentPosition|null $position )
Set position. specifiable relative or absolute
public
# setOffsetTop( string|\ComponentSpacing|null $offsetTop )
Set offsetTop. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetBottom( string|\ComponentSpacing|null $offsetBottom )
Set offsetBottom. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetStart( string|\ComponentSpacing|null $offsetStart )
Set offsetStart. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# setOffsetEnd( string|\ComponentSpacing|null $offsetEnd )
Set offsetEnd. specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)
public
# build( )
Builds icon component structure.

Implementation of