Menu

## MessageTemplateActionBuilder
in package
implements TemplateActionBuilder

MessageTemplateActionBuilder.php : 29

A builder class for message action.

### Interfaces, Classes and Traits

TemplateActionBuilder
  The interface that has a responsibility to build template action.

### Table of Contents

$label : string
$text : string
__construct() : mixed
  MessageAction constructor.
buildTemplateAction() : array<string|int, mixed>
  Builds message action structure.

### Properties

#### $label

MessageTemplateActionBuilder.php : 32
`private string $label`

#### $text

MessageTemplateActionBuilder.php : 34
`private string $text`

### Methods

#### __construct()

MessageTemplateActionBuilder.php : 42

MessageAction constructor.

`public __construct(string $label, string $text) : mixed`

##### Parameters

$label : string

  Label of action.

$text : string

  Text of message.

##### Return values

mixed —

#### buildTemplateAction()

MessageTemplateActionBuilder.php : 53

Builds message action structure.

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

##### Return values

array<string|int, mixed> —

Built message action structure.

## Search results