CoolCMS API

PaymentGatePhone extends BaseEntity
in package
implements IdentifiableInterface uses IdentifiableTrait

AbstractYes
Attributes
#[MappedSuperclass]
#[TableAlias]
$alias: 'paymentGatePhone'

Table of Contents

Interfaces

IdentifiableInterface
Entity with a simple integer primary key. Most entities have one (often via {@see \App\Core\Traits\Shared\Models\Entities\IdentifiableTrait}); texts and links with a composite key do not, which is why `getId()` is not on {@see \App\Core\Base\BaseEntity}. Code that needs the id of a generic entity asks for this interface (parameter type, template bound, `instanceof`).

Properties

$currencyId  : int|null
$id  : int|null
$level  : int
$paymentGateId  : int
$phone  : string
$price  : float

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
getId()  : int|null
getLevel()  : int
getPaymentGateId()  : int
getPhone()  : string
getPrice()  : float
isPersisted()  : bool
setCurrencyId()  : $this
setId()  : $this
setLevel()  : $this
setPaymentGateId()  : $this
setPhone()  : $this
setPrice()  : $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'
$nullable: true
$options: ['unsigned' => true]

$id

protected int|null $id = null
Attributes
#[Column]
$name: 'payment_gate_phone_id'
$type: 'integer'
$options: ['unsigned' => true]
#[GeneratedValue]
#[Id]

$level

protected int $level = 0
Attributes
#[Column]
$name: 'level'
$type: 'integer'
$options: ['unsigned' => true]

$paymentGateId

protected int $paymentGateId = 0
Attributes
#[Column]
$name: 'cms_system_payment_gates_payment_gate_id'
$type: 'integer'
$options: ['unsigned' => true]

$phone

protected string $phone = ''
Attributes
#[Column]
$name: 'phone'
$type: 'string'
$length: 255

$price

protected float $price = 0.0
Attributes
#[Column]
$name: 'price'
$type: 'float'
$options: ['unsigned' => true]

Methods

__construct()

public __construct([int|null $id = null ][, string $phone = '' ][, int $paymentGateId = 0 ][, int|null $currencyId = null ][, float $price = 0.0 ][, int $level = 0 ]) : mixed
Parameters
$id : int|null = null
$phone : string = ''
$paymentGateId : int = 0
$currencyId : int|null = null
$price : float = 0.0
$level : int = 0

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|null

setCurrencyId()

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

setId()

public setId(int|null $id) : $this
Parameters
$id : int|null
Return values
$this

setLevel()

public setLevel(int $level) : $this
Parameters
$level : int
Return values
$this

setPaymentGateId()

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

setPhone()

public setPhone(string $phone) : $this
Parameters
$phone : string
Return values
$this

setPrice()

public setPrice(float $price) : $this
Parameters
$price : float
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