PaymentGateRegionRel
extends PaymentGateRegionRel
in package
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_payment_gate_region_relations'
- #[TableAlias]
- 'paymentGateRegionRel'
Table of Contents
Properties
- $active : bool
- $applyFee : bool
- $currency : TCurrency
- $currencyId : int
- $feePercents : int
- $feePrice : string
- $paymentGate : TPaymentGate
- $paymentGateId : int
- $paymentRegionId : int
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.
- getApplyFee() : bool
- getCurrency() : TCurrency
- getCurrencyId() : int
- getFeePercents() : int
- getFeePrice() : string
- getPaymentGate() : TPaymentGate
- getPaymentGateId() : int
- getPaymentRegionId() : int
- isActive() : bool
- isApplyFee() : bool
- setActive() : $this
- setApplyFee() : $this
- setCurrency() : $this
- setCurrencyId() : $this
- setFeePercents() : $this
- setFeePrice() : $this
- setPaymentGate() : $this
- setPaymentGateId() : $this
- setPaymentRegionId() : $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'
$applyFee
protected
bool
$applyFee
= false
Attributes
- #[Column]
- $name: 'apply_fee'
- $type: 'boolean'
$currency
protected
TCurrency
$currency
= null
Attributes
- #[EntityOf]
- \App\UI\Front\System\Models\Entities\Currency::class
- #[JoinColumn]
- $name: 'cms_system_currencies_currency_id'
- $referencedColumnName: 'currency_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\System\Models\Entities\Currency::class
$currencyId
protected
int
$currencyId
= 0
Attributes
- #[Column]
- $name: 'cms_system_currencies_currency_id'
- $type: 'integer'
- $options: ['unsigned' => true]
$feePercents
protected
int
$feePercents
= 0
Attributes
- #[Column]
- $name: 'fee_percents'
- $type: 'smallint'
$feePrice
protected
string
$feePrice
= '0.000'
Attributes
- #[Column]
- $name: 'fee_price'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$paymentGate
protected
TPaymentGate
$paymentGate
= null
Attributes
- #[EntityOf]
- \App\UI\Front\System\Models\Entities\PaymentGate::class
- #[JoinColumn]
- $name: 'cms_system_payment_gates_payment_gate_id'
- $referencedColumnName: 'payment_gate_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Front\System\Models\Entities\PaymentGate::class
- $inversedBy: 'regionRels'
- #[ParentRef]
$paymentGateId
protected
int
$paymentGateId
= 0
Attributes
- #[Column]
- $name: 'cms_system_payment_gates_payment_gate_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$paymentRegionId
protected
int
$paymentRegionId
= 0
Attributes
- #[Column]
- $name: 'cms_system_payment_regions_payment_region_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
Methods
__construct()
public
__construct([mixed $paymentGate = null ][, mixed $currency = null ][, int $paymentGateId = 0 ][, int $paymentRegionId = 0 ][, int $currencyId = 0 ][, bool $active = true ][, string $feePrice = '0.000' ][, int $feePercents = 0 ][, bool $applyFee = false ]) : mixed
Parameters
- $paymentGate : mixed = null
- $currency : mixed = null
- $paymentGateId : int = 0
- $paymentRegionId : int = 0
- $currencyId : int = 0
- $active : bool = true
- $feePrice : string = '0.000'
- $feePercents : int = 0
- $applyFee : bool = false
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>getApplyFee()
public
getApplyFee() : bool
Return values
boolgetCurrency()
public
getCurrency() : TCurrency
Return values
TCurrencygetCurrencyId()
public
getCurrencyId() : int
Return values
intgetFeePercents()
public
getFeePercents() : int
Return values
intgetFeePrice()
public
getFeePrice() : string
Return values
stringgetPaymentGate()
public
getPaymentGate() : TPaymentGate
Return values
TPaymentGategetPaymentGateId()
public
getPaymentGateId() : int
Return values
intgetPaymentRegionId()
public
getPaymentRegionId() : int
Return values
intisActive()
public
isActive() : bool
Return values
boolisApplyFee()
public
isApplyFee() : bool
Return values
boolsetActive()
public
setActive(bool $active) : $this
Parameters
- $active : bool
Return values
$thissetApplyFee()
public
setApplyFee(bool $applyFee) : $this
Parameters
- $applyFee : bool
Return values
$thissetCurrency()
public
setCurrency(TCurrency $currency) : $this
Parameters
- $currency : TCurrency
Return values
$thissetCurrencyId()
public
setCurrencyId(int $currencyId) : $this
Parameters
- $currencyId : int
Return values
$thissetFeePercents()
public
setFeePercents(int $feePercents) : $this
Parameters
- $feePercents : int
Return values
$thissetFeePrice()
public
setFeePrice(string $feePrice) : $this
Parameters
- $feePrice : string
Return values
$thissetPaymentGate()
public
setPaymentGate(TPaymentGate $paymentGate) : $this
Parameters
- $paymentGate : TPaymentGate
Return values
$thissetPaymentGateId()
public
setPaymentGateId(int $paymentGateId) : $this
Parameters
- $paymentGateId : int
Return values
$thissetPaymentRegionId()
public
setPaymentRegionId(int $paymentRegionId) : $this
Parameters
- $paymentRegionId : int
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>