WhatsAppTemplate
extends Template
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>
$bodyParams
private
array<string|int, mixed>
$bodyParams
= []
private
array<string|int, mixed>|null
$buttonParams
= null
private
array<string|int, mixed>|null
$headerParam
= null
private
string|null
$headerType
= null
private
string|null
$parameterFormat
= null
__construct()
public
__construct(string $name, string $language) : mixed
Parameters
-
$name
: string
-
-
$language
: string
-
__toString()
public
__toString() : string
bodyParam()
public
bodyParam(string $text[, string|null $parameterName = null ]) : self
Parameters
-
$text
: string
-
-
$parameterName
: string|null
= null
-
public
buttonParam(string $label[, string $payload = '' ][, string $subtype = 'quick_reply' ]) : self
Parameters
-
$label
: string
-
-
$payload
: string
= ''
-
-
$subtype
: string
= 'quick_reply'
-
create()
public
static create(string $name, string $language) : self
Parameters
-
$name
: string
-
-
$language
: string
-
getBodyParams()
public
getBodyParams() : array<string|int, mixed>
Return values
array<string|int, mixed>
public
getButtonParams() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null
public
getHeaderParam() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null
public
getHeaderType() : string|null
Return values
string|null
getLanguage()
public
getLanguage() : string
getName()
public
getName() : string
public
headerDocument(string $link[, string|null $filename = null ]) : self
Parameters
-
$link
: string
-
-
$filename
: string|null
= null
-
public
headerImage(string $link) : self
Parameters
-
$link
: string
-
public
headerText(string $text) : self
Parameters
-
$text
: string
-
public
headerVideo(string $link) : self
Parameters
-
$link
: string
-
named()
public
named() : self
positional()
public
positional() : 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>