CoolCMS API

ProductSetFeePrice extends ProductSetFeePrice
in package

Append-only time series of fee prices. Composite PK (fee, currency, publishedDatetime) with the owned FK in the PK; `vat` is a value association outside the PK (set null).

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_eshop_product_set_fee_prices'
#[TableAlias]
'productSetFeePrice'

Table of Contents

Properties

$currencyId  : int|null
$fee  : TProductSetFee|null
$price  : string|null
$publishedDatetime  : string|null
$vat  : TVat|null

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getCurrencyId()  : int|null
getFee()  : TProductSetFee|null
getPrice()  : string|null
getPriceAsFloat()  : float|null
getPublishedDatetime()  : string|null
getVat()  : TVat|null
setCurrencyId()  : $this
setFee()  : $this
setPrice()  : $this
setPublishedDatetime()  : $this
setVat()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$currencyId

protected int|null $currencyId = null
Attributes
#[Column]
$name: 'cms_system_currencies_currency_id'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]
#[Identity]

$fee

protected TProductSetFee|null $fee = null
Attributes
#[EntityOf]
\App\UI\Front\Eshop\Models\Entities\ProductSetFee::class
#[Id]
#[Identity]
#[JoinColumn]
$name: 'cms_mod_eshop_product_set_fees_product_set_fee_id'
$referencedColumnName: 'product_set_fee_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Front\Eshop\Models\Entities\ProductSetFee::class
$inversedBy: 'prices'

$price

protected string|null $price = null
Attributes
#[Column]
$name: 'price'
$type: 'decimal'
$precision: 10
$scale: 3
$nullable: true

$publishedDatetime

protected string|null $publishedDatetime = null
Attributes
#[Column]
$name: 'published_datetime'
$type: 'string'
#[Id]
#[Identity]

$vat

protected TVat|null $vat = null
Attributes
#[EntityOf]
\App\UI\Front\System\Models\Entities\Vat::class
#[JoinColumn]
$name: 'cms_system_vats_vat_id'
$referencedColumnName: 'vat_id'
$nullable: true
$onDelete: 'SET NULL'
#[ManyToOne]
$targetEntity: \App\UI\Front\System\Models\Entities\Vat::class
$fetch: 'LAZY'

Methods

__construct()

public __construct([mixed $fee = null ][, int|null $currencyId = null ][, string|null $publishedDatetime = null ][, mixed $vat = null ][, string|null $price = null ]) : mixed
Parameters
$fee : mixed = null
$currencyId : int|null = null
$publishedDatetime : string|null = null
$vat : mixed = null
$price : string|null = null

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>

getFee()

public getFee() : TProductSetFee|null
Return values
TProductSetFee|null

getPriceAsFloat()

public getPriceAsFloat() : float|null
Return values
float|null

getPublishedDatetime()

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

setCurrencyId()

public setCurrencyId(int|null $currencyId) : $this
Parameters
$currencyId : int|null
Return values
$this

setFee()

public setFee(TProductSetFee|null $fee) : $this
Parameters
$fee : TProductSetFee|null
Return values
$this

setPrice()

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

setPublishedDatetime()

public setPublishedDatetime(string|null $publishedDatetime) : $this
Parameters
$publishedDatetime : string|null
Return values
$this

setVat()

public setVat(TVat|null $vat) : $this
Parameters
$vat : TVat|null
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