PaymentStatus
extends PaymentStatus
in package
Admin variant of the payment status code list, hydrated from the Api endpoint `api/system/payment-status` via `ApiBridge`. The list is seed-only (no admin CRUD grid); the manager is read-only and serves the Invoicer Setting form (choosing invoice generation rules by payment status).
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_payment_statuses'
- #[TableAlias]
- 'paymentStatus'
Table of Contents
Properties
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.
- getId() : int|null
- getKey() : string
- getName() : string
- isPersisted() : bool
- setId() : $this
- setKey() : $this
- setName() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'payment_status_id'
- $type: 'integer'
- #[Id]
$key
protected
string
$key
= ''
Attributes
- #[Column]
- $name: '`key`'
- $type: 'string'
- $length: 50
$name
protected
string
$name
= ''
Attributes
- #[Column]
- $name: 'name'
- $type: 'string'
- $length: 255
Methods
__construct()
public
__construct([int|null $id = null ][, string $key = '' ][, string $name = '' ]) : mixed
Parameters
- $id : int|null = null
- $key : string = ''
- $name : string = ''
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>getId()
public
getId() : int|null
Return values
int|nullgetKey()
public
getKey() : string
Return values
stringgetName()
public
getName() : string
Return values
stringisPersisted()
public
isPersisted() : bool
Return values
boolsetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetKey()
public
setKey(string $key) : $this
Parameters
- $key : string
Return values
$thissetName()
public
setName(string $name) : $this
Parameters
- $name : 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>