PaymentGateFee
extends BaseEntity
in package
AbstractYes
Composite PK (`paymentGateId` + `currencyId`), FKs to payment gates and currencies (`cms_system_payment_gate_fees`). `#[ORM\Id]` is declared here in the base; the UI variants only extend the entity with `#[ORM\Table]` and must not redeclare the PK, otherwise the column is mapped twice (Doctrine "Duplicate definition of column").
Attributes
- #[MappedSuperclass]
- #[TableAlias]
- $alias: 'paymentGateFee'
Table of Contents
Properties
- $currencyId : int
- $paymentGateId : int
- $price : string
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
- getPaymentGateId() : int
- getPrice() : string
- setCurrencyId() : $this
- setPaymentGateId() : $this
- setPrice() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$currencyId
protected
int
$currencyId
= 0
Attributes
- #[Column]
- $name: 'cms_system_currencies_currency_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$paymentGateId
protected
int
$paymentGateId
= 0
Attributes
- #[Column]
- $name: 'cms_system_payment_gates_payment_gate_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$price
protected
string
$price
= '0.000'
Attributes
- #[Column]
- $name: 'price'
- $type: 'decimal'
- $precision: 10
- $scale: 3
Methods
__construct()
public
__construct([int $paymentGateId = 0 ][, int $currencyId = 0 ][, string $price = '0.000' ]) : mixed
Parameters
- $paymentGateId : int = 0
- $currencyId : int = 0
- $price : string = '0.000'
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
Return values
intgetPaymentGateId()
public
getPaymentGateId() : int
Return values
intgetPrice()
public
getPrice() : string
Return values
stringsetCurrencyId()
public
setCurrencyId(int $currencyId) : $this
Parameters
- $currencyId : int
Return values
$thissetPaymentGateId()
public
setPaymentGateId(int $paymentGateId) : $this
Parameters
- $paymentGateId : int
Return values
$thissetPrice()
public
setPrice(string $price) : $this
Parameters
- $price : 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>