CoolCMS API

TariffQuickPrice extends TariffQuickPrice
in package

Tags
extends
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
#[EntityOf]
\App\UI\Front\Comcat\Models\Entities\Tariff::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_mod_comcat_advert_tariffs_advert_tariff_id'
$referencedColumnName: 'advert_tariff_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\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

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>

getCurrencyId()

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

getDescription()

public getDescription() : string|null
Return values
string|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

setCurrencyId()

public setCurrencyId(int|null $currencyId) : $this
Parameters
$currencyId : int|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

setPaymentRegionId()

public setPaymentRegionId(int|null $paymentRegionId) : $this
Parameters
$paymentRegionId : int|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

setPriceFromFloat()

public setPriceFromFloat(float $price) : $this
Parameters
$price : float
Return values
$this

setTariff()

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

setTariffId()

public setTariffId(int|null $tariffId) : $this
Parameters
$tariffId : int|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