TariffQuickPrice
extends TariffQuickPrice
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_comcat_advert_tariff_quick_prices'
- #[TableAlias]
- 'tariffQuickPrice'
Table of Contents
Properties
- $active : bool
- $count : int
- $currencyId : int|null
- $description : string|null
- $keyword : string
- $level : string|null
- $notice : string|null
- $paymentRegionId : int|null
- $phone : string
- $price : string
- $tariff : TTariff|null
- $tariffId : int|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
- getCurrencyId() : int|null
- getDescription() : string|null
- getKeyword() : string
- getLevel() : string|null
- getNotice() : string|null
- getPaymentRegionId() : int|null
- getPhone() : string
- getPrice() : string
- getPriceAsFloat() : float
- getTariff() : TTariff|null
- getTariffId() : int|null
- getTitle() : string
- isActive() : bool
- setActive() : $this
- setCount() : $this
- setCurrencyId() : $this
- setDescription() : $this
- setKeyword() : $this
- setLevel() : $this
- setNotice() : $this
- setPaymentRegionId() : $this
- setPhone() : $this
- setPrice() : $this
- setPriceFromFloat() : $this
- setTariff() : $this
- setTariffId() : $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'
$currencyId
protected
int|null
$currencyId
= null
Attributes
- #[Column]
- $name: 'cms_system_currencies_currency_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$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
$paymentRegionId
protected
int|null
$paymentRegionId
= null
Attributes
- #[Column]
- $name: 'cms_system_payment_regions_payment_region_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$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
- #[Id]
- #[JoinColumn]
- $name: 'cms_mod_comcat_advert_tariffs_advert_tariff_id'
- $referencedColumnName: 'advert_tariff_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Api\Comcat\Models\Entities\Tariff::class
- $inversedBy: 'quickPrices'
$tariffId
protected
int|null
$tariffId
= null
Attributes
- #[Column]
- $name: 'cms_mod_comcat_advert_tariffs_advert_tariff_id'
- $type: 'integer'
- $insertable: false
- $updatable: false
- $nullable: true
- $options: ['unsigned' => true]
$title
protected
string
$title
= ''
Attributes
- #[Column]
- $name: 'title'
- $type: 'string'
- $length: 255
Methods
__construct()
public
__construct([int|null $tariffId = null ][, int|null $paymentRegionId = null ][, mixed $tariff = null ][, string $title = '' ][, string|null $description = null ][, string|null $notice = null ][, string $keyword = '' ][, string $price = '0.000' ][, int|null $currencyId = null ][, string $phone = '' ][, string|null $level = null ][, int $count = 1 ][, bool $active = true ]) : mixed
Parameters
- $tariffId : int|null = null
- $paymentRegionId : int|null = null
- $tariff : mixed = null
- $title : string = ''
- $description : string|null = null
- $notice : string|null = null
- $keyword : string = ''
- $price : string = '0.000'
- $currencyId : int|null = null
- $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
intgetCurrencyId()
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|nullgetPaymentRegionId()
public
getPaymentRegionId() : int|null
Return values
int|nullgetPhone()
public
getPhone() : string
Return values
stringgetPrice()
public
getPrice() : string
Return values
stringgetPriceAsFloat()
public
getPriceAsFloat() : float
Return values
floatgetTariff()
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
$thissetCurrencyId()
public
setCurrencyId(int|null $currencyId) : $this
Parameters
- $currencyId : int|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
$thissetPaymentRegionId()
public
setPaymentRegionId(int|null $paymentRegionId) : $this
Parameters
- $paymentRegionId : int|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
$thissetPriceFromFloat()
public
setPriceFromFloat(float $price) : $this
Parameters
- $price : float
Return values
$thissetTariff()
public
setTariff(TTariff|null $tariff) : $this
Parameters
- $tariff : TTariff|null
Return values
$thissetTariffId()
public
setTariffId(int|null $tariffId) : $this
Parameters
- $tariffId : int|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>