Menu

## BubbleContainerBuilder
in package
implements ContainerBuilder

BubbleContainerBuilder.php : 36

A builder class for bubble container.

### Interfaces, Classes and Traits

ContainerBuilder
  The interface that has a responsibility to build container.

### Table of Contents

$actionBuilder : TemplateActionBuilder
$bodyComponentBuilder : BoxComponentBuilder
$container : array<string|int, mixed>
$direction : ContainerDirection
$footerComponentBuilder : BoxComponentBuilder
$headerComponentBuilder : BoxComponentBuilder
$heroComponentBuilder : ComponentBuilder
$size : BubbleContainerSize
$stylesBuilder : BubbleStylesBuilder
__construct() : mixed
  BubbleContainerBuilder constructor.
build() : array<string|int, mixed>
  Builds bubble container structure.
builder() : BubbleContainerBuilder
  Create empty BubbleContainerBuilder.
setAction() : BubbleContainerBuilder
  Set action.
setBody() : BubbleContainerBuilder
  Set body.
setDirection() : BubbleContainerBuilder
  Set direction.
setFooter() : BubbleContainerBuilder
  Set footer.
setHeader() : BubbleContainerBuilder
  Set header.
setHero() : BubbleContainerBuilder
  Set hero.
setSize() : BubbleContainerBuilder
  Set size.
setStyles() : BubbleContainerBuilder
  Set style.

### Properties

#### $actionBuilder

BubbleContainerBuilder.php : 53
`private TemplateActionBuilder $actionBuilder`

#### $bodyComponentBuilder

BubbleContainerBuilder.php : 45
`private BoxComponentBuilder $bodyComponentBuilder`

#### $container

BubbleContainerBuilder.php : 56
`private array<string|int, mixed> $container`

#### $direction

BubbleContainerBuilder.php : 39
`private ContainerDirection $direction`

#### $footerComponentBuilder

BubbleContainerBuilder.php : 47
`private BoxComponentBuilder $footerComponentBuilder`

#### $headerComponentBuilder

BubbleContainerBuilder.php : 41
`private BoxComponentBuilder $headerComponentBuilder`

#### $heroComponentBuilder

BubbleContainerBuilder.php : 43
`private ComponentBuilder $heroComponentBuilder`

#### $size

BubbleContainerBuilder.php : 51
`private BubbleContainerSize $size`

#### $stylesBuilder

BubbleContainerBuilder.php : 49
`private BubbleStylesBuilder $stylesBuilder`

### Methods

#### __construct()

BubbleContainerBuilder.php : 69

BubbleContainerBuilder constructor.

`public __construct([ContainerDirection|null $direction = null ][, BoxComponentBuilder|null $headerComponentBuilder = null ][, ComponentBuilder|null $heroComponentBuilder = null ][, BoxComponentBuilder|null $bodyComponentBuilder = null ][, BoxComponentBuilder|null $footerComponentBuilder = null ][, BubbleStylesBuilder|null $stylesBuilder = null ][, BubbleContainerSize|null $size = null ]) : mixed`

##### Parameters

$direction : ContainerDirection|null = null
$headerComponentBuilder : BoxComponentBuilder|null = null
$heroComponentBuilder : ComponentBuilder|null = null
$bodyComponentBuilder : BoxComponentBuilder|null = null
$footerComponentBuilder : BoxComponentBuilder|null = null
$stylesBuilder : BubbleStylesBuilder|null = null
$size : BubbleContainerSize|null = null

##### Return values

mixed —

#### build()

BubbleContainerBuilder.php : 199

Builds bubble container structure.

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

##### Return values

array<string|int, mixed> —

#### builder()

BubbleContainerBuilder.php : 92

Create empty BubbleContainerBuilder.

`public static builder() : BubbleContainerBuilder`

##### Return values

BubbleContainerBuilder —

#### setAction()

BubbleContainerBuilder.php : 188

Set action.

`public setAction(TemplateActionBuilder|null $actionBuilder) : BubbleContainerBuilder`

##### Parameters

$actionBuilder : TemplateActionBuilder|null

##### Return values

BubbleContainerBuilder —

#### setBody()

BubbleContainerBuilder.php : 152

Set body.

`public setBody(BoxComponentBuilder|null $bodyComponentBuilder) : BubbleContainerBuilder`

##### Parameters

$bodyComponentBuilder : BoxComponentBuilder|null

##### Return values

BubbleContainerBuilder —

#### setDirection()

BubbleContainerBuilder.php : 116

Set direction.

`public setDirection(ContainerDirection|string|null $direction) : BubbleContainerBuilder`

##### Parameters

$direction : ContainerDirection|string|null

##### Return values

BubbleContainerBuilder —

#### setFooter()

BubbleContainerBuilder.php : 164

Set footer.

`public setFooter(BoxComponentBuilder|null $footerComponentBuilder) : BubbleContainerBuilder`

##### Parameters

$footerComponentBuilder : BoxComponentBuilder|null

##### Return values

BubbleContainerBuilder —

#### setHeader()

BubbleContainerBuilder.php : 128

Set header.

`public setHeader(BoxComponentBuilder|null $headerComponentBuilder) : BubbleContainerBuilder`

##### Parameters

$headerComponentBuilder : BoxComponentBuilder|null

##### Return values

BubbleContainerBuilder —

#### setHero()

BubbleContainerBuilder.php : 140

Set hero.

`public setHero(ComponentBuilder|null $heroComponentBuilder) : BubbleContainerBuilder`

##### Parameters

$heroComponentBuilder : ComponentBuilder|null

##### Return values

BubbleContainerBuilder —

#### setSize()

BubbleContainerBuilder.php : 104

Set size.

`public setSize(BubbleContainerSize|string|null $size) : BubbleContainerBuilder`

default: mega

##### Parameters

$size : BubbleContainerSize|string|null

##### Return values

BubbleContainerBuilder —

#### setStyles()

BubbleContainerBuilder.php : 176

Set style.

`public setStyles(BubbleStylesBuilder|null $stylesBuilder) : BubbleContainerBuilder`

##### Parameters

$stylesBuilder : BubbleStylesBuilder|null

##### Return values

BubbleContainerBuilder —

## Search results