CoolCMS API

PaymentGateRegionRel extends PaymentGateRegionRel
in package

Tags
extends
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
#[JoinColumn]
$name: 'cms_system_currencies_currency_id'
$referencedColumnName: 'currency_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\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
#[JoinColumn]
$name: 'cms_system_payment_gates_payment_gate_id'
$referencedColumnName: 'payment_gate_id'
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Api\System\Models\Entities\PaymentGate::class
$inversedBy: 'regionRels'

$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

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>

setActive()

public setActive(bool $active) : $this
Parameters
$active : bool
Return values
$this

setApplyFee()

public setApplyFee(bool $applyFee) : $this
Parameters
$applyFee : bool
Return values
$this

setCurrency()

public setCurrency(TCurrency $currency) : $this
Parameters
$currency : TCurrency
Return values
$this

setCurrencyId()

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

setFeePercents()

public setFeePercents(int $feePercents) : $this
Parameters
$feePercents : int
Return values
$this

setFeePrice()

public setFeePrice(string $feePrice) : $this
Parameters
$feePrice : string
Return values
$this

setPaymentGate()

public setPaymentGate(TPaymentGate $paymentGate) : $this
Parameters
$paymentGate : TPaymentGate
Return values
$this

setPaymentGateId()

public setPaymentGateId(int $paymentGateId) : $this
Parameters
$paymentGateId : int
Return values
$this

setPaymentRegionId()

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