CoolCMS API

TariffQuickPrice extends TariffQuickPrice
in package

Express price of a tariff (premium SMS etc.) per payment region.

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_discussion_message_tariff_quick_prices'
#[TableAlias]
'TariffQuickPrice'

Table of Contents

Properties

$active  : bool
$count  : int
$currency  : TCurrency|null
$description  : string|null
$keyword  : string
$level  : string|null
$notice  : string|null
$paymentRegion  : TPaymentRegion|null
$phone  : string
$price  : string
$tariff  : TTariff|null
$title  : string

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getActive()  : bool
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getCount()  : int
getCurrency()  : TCurrency|null
getCurrencyId()  : int|null
getDescription()  : string|null
getKeyword()  : string
getLevel()  : string|null
getNotice()  : string|null
getPaymentRegion()  : TPaymentRegion|null
getPaymentRegionId()  : int|null
getPhone()  : string
getPrice()  : string
getTariff()  : TTariff|null
getTariffId()  : int|null
getTitle()  : string
isActive()  : bool
setActive()  : $this
setCount()  : $this
setCurrency()  : $this
setDescription()  : $this
setKeyword()  : $this
setLevel()  : $this
setNotice()  : $this
setPaymentRegion()  : $this
setPhone()  : $this
setPrice()  : $this
setTariff()  : $this
setTitle()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$active

protected bool $active = true
Attributes
#[Column]
$name: 'active'
$type: 'boolean'

$count

protected int $count = 1
Attributes
#[Column]
$name: 'count'
$type: 'integer'

$currency

protected TCurrency|null $currency = null
Attributes
#[EntityOf]
\App\UI\Front\System\Models\Entities\Currency::class
#[JoinColumn]
$name: 'cms_system_currencies_currency_id'
$referencedColumnName: 'currency_id'
$nullable: true
#[ManyToOne]
$targetEntity: \App\UI\Front\System\Models\Entities\Currency::class

$description

protected string|null $description = null
Attributes
#[Column]
$name: 'description'
$type: 'text'
$nullable: true

$keyword

protected string $keyword = ''
Attributes
#[Column]
$name: 'keyword'
$type: 'string'
$length: 40

$level

protected string|null $level = null
Attributes
#[Column]
$name: 'level'
$type: 'string'
$length: 20
$nullable: true

$notice

protected string|null $notice = null
Attributes
#[Column]
$name: 'notice'
$type: 'text'
$nullable: true

$paymentRegion

protected TPaymentRegion|null $paymentRegion = null
Attributes
#[EntityOf]
\App\UI\Front\System\Models\Entities\PaymentRegion::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_system_payment_regions_payment_region_id'
$referencedColumnName: 'payment_region_id'
#[ManyToOne]
$targetEntity: \App\UI\Front\System\Models\Entities\PaymentRegion::class

$phone

protected string $phone = ''
Attributes
#[Column]
$name: 'phone'
$type: 'string'
$length: 255

$price

protected string $price = '0.000'
Attributes
#[Column]
$name: 'price'
$type: 'decimal'
$precision: 10
$scale: 3

$tariff

protected TTariff|null $tariff = null
Attributes
#[EntityOf]
\App\UI\Front\Discussion\Models\Entities\Tariff::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_mod_discussion_message_tariffs_message_tariff_id'
$referencedColumnName: 'message_tariff_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Discussion\Models\Entities\Tariff::class
$inversedBy: 'quickPrices'

$title

protected string $title = ''
Attributes
#[Column]
$name: 'title'
$type: 'string'
$length: 255

Methods

__construct()

public __construct([mixed $tariff = null ][, mixed $paymentRegion = null ][, mixed $currency = null ][, string $title = '' ][, string|null $description = null ][, string|null $notice = null ][, string $keyword = '' ][, string $price = '0.000' ][, string $phone = '' ][, string|null $level = null ][, int $count = 1 ][, bool $active = true ]) : mixed
Parameters
$tariff : mixed = null
$paymentRegion : mixed = null
$currency : mixed = null
$title : string = ''
$description : string|null = null
$notice : string|null = null
$keyword : string = ''
$price : string = '0.000'
$phone : string = ''
$level : string|null = null
$count : int = 1
$active : bool = true

callInitMethods()

Calls `init{TraitName}()` for every used trait that defines such a method.

public callInitMethods() : void

getAllTraits()

Returns all traits the class uses, including those used by parent classes and nested traits.

public getAllTraits() : array<string, string>
Return values
array<string, string>

getCurrency()

public getCurrency() : TCurrency|null
Return values
TCurrency|null

getCurrencyId()

public getCurrencyId() : int|null
Return values
int|null

getDescription()

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

getPaymentRegion()

public getPaymentRegion() : TPaymentRegion|null
Return values
TPaymentRegion|null

getPaymentRegionId()

public getPaymentRegionId() : int|null
Return values
int|null

getTariff()

public getTariff() : TTariff|null
Return values
TTariff|null

setActive()

public setActive(bool $active) : $this
Parameters
$active : bool
Return values
$this

setCount()

public setCount(int $count) : $this
Parameters
$count : int
Return values
$this

setCurrency()

public setCurrency(TCurrency|null $currency) : $this
Parameters
$currency : TCurrency|null
Return values
$this

setDescription()

public setDescription(string|null $description) : $this
Parameters
$description : string|null
Return values
$this

setKeyword()

public setKeyword(string $keyword) : $this
Parameters
$keyword : string
Return values
$this

setLevel()

public setLevel(string|null $level) : $this
Parameters
$level : string|null
Return values
$this

setNotice()

public setNotice(string|null $notice) : $this
Parameters
$notice : string|null
Return values
$this

setPaymentRegion()

public setPaymentRegion(TPaymentRegion|null $paymentRegion) : $this
Parameters
$paymentRegion : TPaymentRegion|null
Return values
$this

setPhone()

public setPhone(string $phone) : $this
Parameters
$phone : string
Return values
$this

setPrice()

public setPrice(string $price) : $this
Parameters
$price : string
Return values
$this

setTariff()

public setTariff(TTariff|null $tariff) : $this
Parameters
$tariff : TTariff|null
Return values
$this

setTitle()

public setTitle(string $title) : $this
Parameters
$title : string
Return values
$this

getTraitsRecursive()

Walks the trait list recursively and collects nested traits too.

private static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
$traits : array<string, string>
Return values
array<string, string>
On this page

Search results