TariffQuickPrice
extends TariffQuickPrice
in package
Express price of a tariff (premium SMS etc.) per payment region.
Tags
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\Admin\System\Models\Entities\Currency::class
- #[JoinColumn]
- $name: 'cms_system_currencies_currency_id'
- $referencedColumnName: 'currency_id'
- $nullable: true
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\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\Admin\System\Models\Entities\PaymentRegion::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_system_payment_regions_payment_region_id'
- $referencedColumnName: 'payment_region_id'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\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\Admin\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\Admin\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
getActive()
public
getActive() : bool
Return values
boolgetAllTraits()
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>getCount()
public
getCount() : int
Return values
intgetCurrency()
public
getCurrency() : TCurrency|null
Return values
TCurrency|nullgetCurrencyId()
public
getCurrencyId() : int|null
Return values
int|nullgetDescription()
public
getDescription() : string|null
Return values
string|nullgetKeyword()
public
getKeyword() : string
Return values
stringgetLevel()
public
getLevel() : string|null
Return values
string|nullgetNotice()
public
getNotice() : string|null
Return values
string|nullgetPaymentRegion()
public
getPaymentRegion() : TPaymentRegion|null
Return values
TPaymentRegion|nullgetPaymentRegionId()
public
getPaymentRegionId() : int|null
Return values
int|nullgetPhone()
public
getPhone() : string
Return values
stringgetPrice()
public
getPrice() : string
Return values
stringgetTariff()
public
getTariff() : TTariff|null
Return values
TTariff|nullgetTariffId()
public
getTariffId() : int|null
Return values
int|nullgetTitle()
public
getTitle() : string
Return values
stringisActive()
public
isActive() : bool
Return values
boolsetActive()
public
setActive(bool $active) : $this
Parameters
- $active : bool
Return values
$thissetCount()
public
setCount(int $count) : $this
Parameters
- $count : int
Return values
$thissetCurrency()
public
setCurrency(TCurrency|null $currency) : $this
Parameters
- $currency : TCurrency|null
Return values
$thissetDescription()
public
setDescription(string|null $description) : $this
Parameters
- $description : string|null
Return values
$thissetKeyword()
public
setKeyword(string $keyword) : $this
Parameters
- $keyword : string
Return values
$thissetLevel()
public
setLevel(string|null $level) : $this
Parameters
- $level : string|null
Return values
$thissetNotice()
public
setNotice(string|null $notice) : $this
Parameters
- $notice : string|null
Return values
$thissetPaymentRegion()
public
setPaymentRegion(TPaymentRegion|null $paymentRegion) : $this
Parameters
- $paymentRegion : TPaymentRegion|null
Return values
$thissetPhone()
public
setPhone(string $phone) : $this
Parameters
- $phone : string
Return values
$thissetPrice()
public
setPrice(string $price) : $this
Parameters
- $price : string
Return values
$thissetTariff()
public
setTariff(TTariff|null $tariff) : $this
Parameters
- $tariff : TTariff|null
Return values
$thissetTitle()
public
setTitle(string $title) : $this
Parameters
- $title : string
Return values
$thisgetTraitsRecursive()
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>