Template
abstract class Template extends Attachment (View source)
Class Structured
Traits
Class Quickable
Constants
| TYPE_IMAGE |
Image type |
| TYPE_AUDIO |
Audio type |
| TYPE_VIDEO |
Video type |
| TYPE_FILE |
File type |
| TYPE_LOCATION |
Location type |
| TYPE_TEMPLATE |
Template type |
Properties
| protected QuickReplyCollection | $quicks | from Quickable | |
| protected BaseCollection | $collections |
Methods
__construct($sender)
Structured constructor.
array
toData()
To array for send api
$this
add($elements)
Add elements
mixed
__call($name, $arguments)
No description
getCollections()
Get collection
mixed
collection()
Collection class name
Details
at line 32
__construct($sender)
Structured constructor.
at line 88
array
toData()
To array for send api
in Attachment at line 77
array
getPayload()
Get payload
in Attachment at line 89
$this
setPayload(array $payload)
Set Payload
in Attachment at line 100
$this
enableReuse()
Enable reuse
in Attachment at line 111
$this
disableReuse()
Disable reuse
in Attachment at line 124
$this
setAttachmentId($id)
Set attachment id
at line 47
$this
add($elements)
Add elements
at line 66
mixed
__call($name, $arguments)
at line 78
BaseCollection
getCollections()
Get collection
at line 99
abstract protected mixed
collection()
Collection class name