MessageTemplateActionBuilder
in package
implements
TemplateActionBuilder
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
private
string
$label
$text
private
string
$text
Methods
__construct()
MessageAction constructor.
public
__construct(string $label, string $text) : mixed
Parameters
- $label : string
-
Label of action.
- $text : string
-
Text of message.
Return values
mixed —buildTemplateAction()
Builds message action structure.
public
buildTemplateAction() : array<string|int, mixed>
Return values
array<string|int, mixed> —Built message action structure.