GenericTemplate
class GenericTemplate extends Template (View source)
Class GenericTemplate
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 |
IMAGE_HORIZONTAL |
Horizontal image |
IMAGE_SQUARE |
Square image |
Properties
protected QuickReplyCollection | $quicks | from Quickable | |
protected BaseCollection | $collections | from Template |
Methods
__construct($sender, $elements = [])
Generic constructor.
array
toData()
To array for send api
mixed
collection()
No description
$this
setImageRatio($value)
Set image aspect ratio
string
getImageRatio()
Get image ratio
Details
at line 40
__construct($sender, $elements = [])
Generic constructor.
at line 51
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
BaseCollection
getCollections()
Get collection
at line 84
protected mixed
collection()
at line 65
$this
setImageRatio($value)
Set image aspect ratio
at line 76
string
getImageRatio()
Get image ratio