ProductSetFeePrice
extends BaseEntity
in package
AbstractYes
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).
IMPORTANT: price is the base without VAT and the price with VAT is computed with the rate
from vat, same as ProductSetPrice. Reading it as a price with VAT would misprice
the fee.
publishedDatetime is type: 'string', not 'datetime'; see ProductSetPrice::$publishedTime.
Tags
Attributes
- #[MappedSuperclass]
- #[TableAlias]
- $alias: '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
$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
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>getCurrencyId()
public
getCurrencyId() : int|null
Return values
int|nullgetFee()
public
getFee() : TProductSetFee|null
Return values
TProductSetFee|nullgetPrice()
public
getPrice() : string|null
Return values
string|nullgetPriceAsFloat()
public
getPriceAsFloat() : float|null
Return values
float|nullgetPublishedDatetime()
public
getPublishedDatetime() : string|null
Return values
string|nullgetVat()
public
getVat() : TVat|null
Return values
TVat|nullsetCurrencyId()
public
setCurrencyId(int|null $currencyId) : $this
Parameters
- $currencyId : int|null
Return values
$thissetFee()
public
setFee(TProductSetFee|null $fee) : $this
Parameters
- $fee : TProductSetFee|null
Return values
$thissetPrice()
public
setPrice(string|null $price) : $this
Parameters
- $price : string|null
Return values
$thissetPublishedDatetime()
public
setPublishedDatetime(string|null $publishedDatetime) : $this
Parameters
- $publishedDatetime : string|null
Return values
$thissetVat()
public
setVat(TVat|null $vat) : $this
Parameters
- $vat : TVat|null
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>