Menu

## ConfirmTemplateBuilder
in package
implements TemplateBuilder

ConfirmTemplateBuilder.php : 30

A builder class for confirm template.

### Interfaces, Classes and Traits

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

### Table of Contents

$actionBuilders : array<string|int, TemplateActionBuilder>
$template : array<string|int, mixed>
$text : string
__construct() : mixed
  ConfirmTemplate constructor.
buildTemplate() : array<string|int, mixed>
  Builds confirm template structure.

### Properties

#### $actionBuilders

ConfirmTemplateBuilder.php : 35
`private array<string|int, TemplateActionBuilder> $actionBuilders`

#### $template

ConfirmTemplateBuilder.php : 38
`private array<string|int, mixed> $template`

#### $text

ConfirmTemplateBuilder.php : 33
`private string $text`

### Methods

#### __construct()

ConfirmTemplateBuilder.php : 46

ConfirmTemplate constructor.

`public __construct(string $text, array<string|int, TemplateActionBuilder> $actionBuilders) : mixed`

##### Parameters

$text : string
$actionBuilders : array<string|int, TemplateActionBuilder>

##### Return values

mixed —

#### buildTemplate()

ConfirmTemplateBuilder.php : 57

Builds confirm template structure.

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

##### Return values

array<string|int, mixed> —

## Search results