Menu

## SeparatorComponentBuilder
in package
implements ComponentBuilder

SeparatorComponentBuilder.php : 31

A builder class for separator component.

### Interfaces, Classes and Traits

ComponentBuilder
  The interface that has a responsibility to build component.

### Table of Contents

$color : string
$component : array<string|int, mixed>|null
$margin : ComponentMargin
__construct() : mixed
  SeparatorComponentBuilder constructor.
build() : array<string|int, mixed>
  Builds separator component structure.
builder() : SeparatorComponentBuilder
  Create empty SeparatorComponentBuilder.
setColor() : SeparatorComponentBuilder
  Set color.
setMargin() : SeparatorComponentBuilder
  Set margin.

### Properties

#### $color

SeparatorComponentBuilder.php : 36
`private string $color`

#### $component

SeparatorComponentBuilder.php : 39
`private array<string|int, mixed>|null $component`

#### $margin

SeparatorComponentBuilder.php : 34
`private ComponentMargin $margin`

### Methods

#### __construct()

SeparatorComponentBuilder.php : 47

SeparatorComponentBuilder constructor.

`public __construct([ComponentMargin|null $margin = null ][, string|null $color = null ]) : mixed`

##### Parameters

$margin : ComponentMargin|null = null
$color : string|null = null

##### Return values

mixed —

#### build()

SeparatorComponentBuilder.php : 92

Builds separator component structure.

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

##### Return values

array<string|int, mixed> —

#### builder()

SeparatorComponentBuilder.php : 58

Create empty SeparatorComponentBuilder.

`public static builder() : SeparatorComponentBuilder`

##### Return values

SeparatorComponentBuilder —

#### setColor()

SeparatorComponentBuilder.php : 81

Set color.

`public setColor(string|null $color) : SeparatorComponentBuilder`

##### Parameters

$color : string|null

##### Return values

SeparatorComponentBuilder —

#### setMargin()

SeparatorComponentBuilder.php : 69

Set margin.

`public setMargin(ComponentMargin|string|null $margin) : SeparatorComponentBuilder`

##### Parameters

$margin : ComponentMargin|string|null

##### Return values

SeparatorComponentBuilder —

## Search results