CoolCMS API

TariffQuickPrice extends BaseEntity
in package
implements PaymentRegionScopedInterface

AbstractYes

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

The composite identity is the object associations tariff + paymentRegion (#[ORM\Id] in the UI variant); currency is a plain nullable association. The scalar *Id getters are derived only. See TariffPrice.

Tags
template
Attributes
#[MappedSuperclass]
#[TableAlias]
$alias: 'TariffQuickPrice'

Table of Contents

Interfaces

PaymentRegionScopedInterface
Record valid for one payment region (tariff prices, quick prices, gateway-to-region links).

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'

$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

$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

$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