Menu

## TemplateMessageBuilder
in package
implements MessageBuilder

TemplateMessageBuilder.php : 31

A builder class for template message.

### Interfaces, Classes and Traits

MessageBuilder
  The interface that has a responsibility to build message.

### Table of Contents

$altText : string
$message : array<string|int, mixed>
$quickReply : QuickReplyBuilder|null
$sender : SenderBuilder|null
$templateBuilder : TemplateBuilder
__construct() : mixed
  TemplateMessageBuilder constructor.
buildMessage() : array<string|int, mixed>
  Builds template message structure.

### Properties

#### $altText

TemplateMessageBuilder.php : 34
`private string $altText`

#### $message

TemplateMessageBuilder.php : 40
`private array<string|int, mixed> $message = []`

#### $quickReply

TemplateMessageBuilder.php : 45
`private QuickReplyBuilder|null $quickReply`

#### $sender

TemplateMessageBuilder.php : 48
`private SenderBuilder|null $sender`

#### $templateBuilder

TemplateMessageBuilder.php : 37
`private TemplateBuilder $templateBuilder`

### Methods

#### __construct()

TemplateMessageBuilder.php : 58

TemplateMessageBuilder constructor.

`public __construct(string $altText, TemplateBuilder $templateBuilder[, QuickReplyBuilder|null $quickReply = null ][, SenderBuilder|null $sender = null ]) : mixed`

##### Parameters

$altText : string
$templateBuilder : TemplateBuilder
$quickReply : QuickReplyBuilder|null = null
$sender : SenderBuilder|null = null

##### Return values

mixed —

#### buildMessage()

TemplateMessageBuilder.php : 75

Builds template message structure.

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

##### Return values

array<string|int, mixed> —

## Search results