InfoPopup
implements
Arrayable
Table of Contents
Interfaces
- Arrayable
Methods
-
addLinkField()
: self
-
addMixedField()
: self
-
addMoneyField()
: mixed
-
addPhoneField()
: mixed
-
addTextField()
: self
-
createLinkBlock()
: array<string|int, mixed>
-
createMoneyBlock()
: array<string|int, mixed>
-
createPhoneBlock()
: array<string|int, mixed>
-
createTextBlock()
: array<string|int, mixed>
-
getIcon()
: string|null
-
getSubtitle()
: string|null
-
getTitle()
: string|null
-
setIcon()
: self
-
setSubtitle()
: self
-
setTitle()
: self
-
toArray()
: array<string|int, mixed>
addLinkField()
public
addLinkField(string $title, string $text, mixed $href) : self
Parameters
-
$title
: string
-
-
$text
: string
-
-
$href
: mixed
-
addMixedField()
public
addMixedField(string $title, array<string|int, mixed> $blocks) : self
Parameters
-
$title
: string
-
-
$blocks
: array<string|int, mixed>
-
addMoneyField()
public
addMoneyField(string $title, float $opportunity, string $currencyId) : mixed
Parameters
-
$title
: string
-
-
$opportunity
: float
-
-
$currencyId
: string
-
addPhoneField()
public
addPhoneField(string $title, string $text, string $phone, bool $canPerformCalls) : mixed
Parameters
-
$title
: string
-
-
$text
: string
-
-
$phone
: string
-
-
$canPerformCalls
: bool
-
addTextField()
public
addTextField(string $title, string $text) : self
Parameters
-
$title
: string
-
-
$text
: string
-
createLinkBlock()
public
createLinkBlock(mixed $text, mixed $href) : array<string|int, mixed>
Parameters
-
$text
: mixed
-
-
$href
: mixed
-
Return values
array<string|int, mixed>
createMoneyBlock()
public
createMoneyBlock(float $opportunity, string $currencyId) : array<string|int, mixed>
Parameters
-
$opportunity
: float
-
-
$currencyId
: string
-
Return values
array<string|int, mixed>
createPhoneBlock()
public
createPhoneBlock(string $text, string $phone, bool $canPerformCalls) : array<string|int, mixed>
Parameters
-
$text
: string
-
-
$phone
: string
-
-
$canPerformCalls
: bool
-
Return values
array<string|int, mixed>
createTextBlock()
public
createTextBlock(mixed $text) : array<string|int, mixed>
Parameters
-
$text
: mixed
-
Return values
array<string|int, mixed>
getIcon()
public
getIcon() : string|null
Return values
string|null
getSubtitle()
public
getSubtitle() : string|null
Return values
string|null
getTitle()
public
getTitle() : string|null
Return values
string|null
setIcon()
public
setIcon(string $icon) : self
Parameters
-
$icon
: string
-
setSubtitle()
public
setSubtitle(string $subtitle) : self
Parameters
-
$subtitle
: string
-
setTitle()
public
setTitle(string $title) : self
Parameters
-
$title
: string
-
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>