bootdesk/chat-sdk

Question
in package

Table of Contents

Properties

$buttons  : array<int, array{text: string, value: string}>
$callbackId  : string|null
$fallback  : string|null
$text  : string

Methods

addButton()  : self
addButtons()  : self
callbackId()  : self
create()  : self
fallback()  : self
getButtons()  : array<int, array{text: string, value: string}>
getCallbackId()  : string|null
getFallback()  : string|null
getText()  : string
__construct()  : mixed

Properties

$buttons

private array<int, array{text: string, value: string}> $buttons = []

$callbackId

private string|null $callbackId = null

$fallback

private string|null $fallback = null

Methods

addButton()

public addButton(array<string|int, mixed>|Button $button) : self
Parameters
$button : array<string|int, mixed>|Button
Return values
self

addButtons()

public addButtons(array<string|int, mixed> $buttons) : self
Parameters
$buttons : array<string|int, mixed>
Return values
self

callbackId()

public callbackId(string $id) : self
Parameters
$id : string
Return values
self

create()

public static create(string $text) : self
Parameters
$text : string
Return values
self

fallback()

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

getButtons()

public getButtons() : array<int, array{text: string, value: string}>
Return values
array<int, array{text: string, value: string}>

getCallbackId()

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

getFallback()

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

getText()

public getText() : string
Return values
string

__construct()

private __construct(string $text) : mixed
Parameters
$text : string
On this page

Search results