LINE Messaging API SDK for PHP

IconComponentBuilder implements ComponentBuilder

A builder class for icon component.

Interfaces, Classes and Traits

ComponentBuilder
The interface that has a responsibility to build component.

Table of Contents

$aspectRatio  : ComponentIconAspectRatio
$component  : array<string|int, mixed>|null
$margin  : ComponentMargin
$offsetBottom  : string
$offsetEnd  : string
$offsetStart  : string
$offsetTop  : string
$position  : string
$size  : ComponentIconSize
$url  : string
__construct()  : mixed
IconComponentBuilder constructor.
build()  : array<string|int, mixed>
Builds icon component structure.
builder()  : IconComponentBuilder
Create empty IconComponentBuilder.
setAspectRatio()  : IconComponentBuilder
Set aspectRatio.
setMargin()  : IconComponentBuilder
Set margin.
setOffsetBottom()  : $this
Set offsetBottom.
setOffsetEnd()  : $this
Set offsetEnd.
setOffsetStart()  : $this
Set offsetStart.
setOffsetTop()  : $this
Set offsetTop.
setPosition()  : $this
Set position.
setSize()  : IconComponentBuilder
Set size.
setUrl()  : IconComponentBuilder
Set url.

Properties

Methods

build()

Builds icon component structure.

public build() : array<string|int, mixed>
Return values
array<string|int, mixed>

setOffsetBottom()

Set offsetBottom.

public setOffsetBottom(string|ComponentSpacing|null $offsetBottom) : $this

specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)

Parameters
$offsetBottom : string|ComponentSpacing|null
Return values
$this

setOffsetEnd()

Set offsetEnd.

public setOffsetEnd(string|ComponentSpacing|null $offsetEnd) : $this

specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)

Parameters
$offsetEnd : string|ComponentSpacing|null
Return values
$this

setOffsetStart()

Set offsetStart.

public setOffsetStart(string|ComponentSpacing|null $offsetStart) : $this

specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)

Parameters
$offsetStart : string|ComponentSpacing|null
Return values
$this

setOffsetTop()

Set offsetTop.

public setOffsetTop(string|ComponentSpacing|null $offsetTop) : $this

specifiable percentage, pixel and keyword. (e.g. percentage: 5% pixel: 5px keyword: none (defined in ComponentSpacing)

Parameters
$offsetTop : string|ComponentSpacing|null
Return values
$this

Search results