bootdesk/chat-sdk

WhatsAppTemplate extends Template
in package

Table of Contents

Properties

$bodyParams  : array<string|int, mixed>
$buttonParams  : array<string|int, mixed>|null
$headerParam  : array<string|int, mixed>|null
$headerType  : string|null
$parameterFormat  : string|null

Methods

__construct()  : mixed
__toString()  : string
bodyParam()  : self
buttonParam()  : self
create()  : self
getBodyParams()  : array<string|int, mixed>
getButtonParams()  : array<string|int, mixed>|null
getHeaderParam()  : array<string|int, mixed>|null
getHeaderType()  : string|null
getLanguage()  : string
getName()  : string
headerDocument()  : self
headerImage()  : self
headerText()  : self
headerVideo()  : self
named()  : self
positional()  : self
toArray()  : array<string|int, mixed>
toWhatsApp()  : array<string|int, mixed>

Properties

$buttonParams

private array<string|int, mixed>|null $buttonParams = null

Methods

__construct()

public __construct(string $name, string $language) : mixed
Parameters
$name : string
$language : string

bodyParam()

public bodyParam(string $text[, string|null $parameterName = null ]) : self
Parameters
$text : string
$parameterName : string|null = null
Return values
self

buttonParam()

public buttonParam(string $label[, string $payload = '' ][, string $subtype = 'quick_reply' ]) : self
Parameters
$label : string
$payload : string = ''
$subtype : string = 'quick_reply'
Return values
self

create()

public static create(string $name, string $language) : self
Parameters
$name : string
$language : string
Return values
self

getBodyParams()

public getBodyParams() : array<string|int, mixed>
Return values
array<string|int, mixed>

getButtonParams()

public getButtonParams() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getHeaderParam()

public getHeaderParam() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getHeaderType()

public getHeaderType() : string|null
Return values
string|null

getLanguage()

public getLanguage() : string
Return values
string

getName()

public getName() : string
Return values
string

headerDocument()

public headerDocument(string $link[, string|null $filename = null ]) : self
Parameters
$link : string
$filename : string|null = null
Return values
self

headerImage()

public headerImage(string $link) : self
Parameters
$link : string
Return values
self

headerText()

public headerText(string $text) : self
Parameters
$text : string
Return values
self

headerVideo()

public headerVideo(string $link) : self
Parameters
$link : string
Return values
self

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

toWhatsApp()

public toWhatsApp() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results