Menu

## CarouselTemplateBuilder
in package
implements TemplateBuilder

CarouselTemplateBuilder.php : 29

A builder class for carousel template.

### Interfaces, Classes and Traits

TemplateBuilder
  The interface that has a responsibility to build template message.

### Table of Contents

$columnTemplateBuilders : array<string|int, CarouselColumnTemplateBuilder>
$imageAspectRatio : string
$imageSize : string
$template : array<string|int, mixed>
__construct() : mixed
  CarouselTemplateBuilder constructor.
buildTemplate() : array<string|int, mixed>
  Builds carousel template structure.

### Properties

#### $columnTemplateBuilders

CarouselTemplateBuilder.php : 32
`private array<string|int, CarouselColumnTemplateBuilder> $columnTemplateBuilders`

#### $imageAspectRatio

CarouselTemplateBuilder.php : 34
`private string $imageAspectRatio`

#### $imageSize

CarouselTemplateBuilder.php : 36
`private string $imageSize`

#### $template

CarouselTemplateBuilder.php : 39
`private array<string|int, mixed> $template`

### Methods

#### __construct()

CarouselTemplateBuilder.php : 48

CarouselTemplateBuilder constructor.

`public __construct(array<string|int, CarouselColumnTemplateBuilder> $columnTemplateBuilders[, string|null $imageAspectRatio = null ][, string|null $imageSize = null ]) : mixed`

##### Parameters

$columnTemplateBuilders : array<string|int, CarouselColumnTemplateBuilder>
$imageAspectRatio : string|null = null
$imageSize : string|null = null

##### Return values

mixed —

#### buildTemplate()

CarouselTemplateBuilder.php : 60

Builds carousel template structure.

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

##### Return values

array<string|int, mixed> —

## Search results