Menu

## BlockStyleBuilder
in package

BlockStyleBuilder.php : 28

A builder class for bubble style.

### Table of Contents

$backgroundColor : string
$separator : bool
$separatorColor : string
$style : array<string|int, mixed>|null
__construct() : mixed
  BlockStyleBuilder constructor.
build() : array<string|int, mixed>
  Builds block style structure.
builder() : BlockStyleBuilder
  Create empty BlockStyleBuilder.
setBackgroundColor() : BlockStyleBuilder
  Set backgroundColor.
setSeparator() : BlockStyleBuilder
  Set separator.
setSeparatorColor() : BlockStyleBuilder
  Set separatorColor.

### Properties

#### $backgroundColor

BlockStyleBuilder.php : 31
`private string $backgroundColor`

#### $separator

BlockStyleBuilder.php : 33
`private bool $separator`

#### $separatorColor

BlockStyleBuilder.php : 35
`private string $separatorColor`

#### $style

BlockStyleBuilder.php : 38
`private array<string|int, mixed>|null $style`

### Methods

#### __construct()

BlockStyleBuilder.php : 47

BlockStyleBuilder constructor.

`public __construct([string|null $backgroundColor = null ][, bool|null $separator = null ][, string|null $separatorColor = null ]) : mixed`

##### Parameters

$backgroundColor : string|null = null
$separator : bool|null = null
$separatorColor : string|null = null

##### Return values

mixed —

#### build()

BlockStyleBuilder.php : 105

Builds block style structure.

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

##### Return values

array<string|int, mixed> —

#### builder()

BlockStyleBuilder.php : 59

Create empty BlockStyleBuilder.

`public static builder() : BlockStyleBuilder`

##### Return values

BlockStyleBuilder —

#### setBackgroundColor()

BlockStyleBuilder.php : 70

Set backgroundColor.

`public setBackgroundColor(string|null $backgroundColor) : BlockStyleBuilder`

##### Parameters

$backgroundColor : string|null

##### Return values

BlockStyleBuilder —

#### setSeparator()

BlockStyleBuilder.php : 82

Set separator.

`public setSeparator(bool|null $separator) : BlockStyleBuilder`

##### Parameters

$separator : bool|null

##### Return values

BlockStyleBuilder —

#### setSeparatorColor()

BlockStyleBuilder.php : 94

Set separatorColor.

`public setSeparatorColor(string|null $separatorColor) : BlockStyleBuilder`

##### Parameters

$separatorColor : string|null

##### Return values

BlockStyleBuilder —

## Search results