PaymentStatusRule
extends PaymentStatusRule
in package
Mapping of payment status to invoice type (settings form, section of invoices by payment status).
Scalar entity without associations; inherits paymentStatus and invoiceTypeId from
PaymentStatusRule.
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_invoicer_payment_status_rules'
- #[TableAlias]
- 'paymentStatusRule'
Table of Contents
Properties
- $id : int|null
- $invoiceTypeId : int
- $paymentStatus : int
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
- getInvoiceTypeId() : int
- getPaymentStatus() : int
- isPersisted() : bool
- setId() : $this
- setInvoiceTypeId() : $this
- setPaymentStatus() : $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_rule_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$invoiceTypeId
protected
int
$invoiceTypeId
= 0
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_invoice_types_invoice_type_id'
- $type: 'integer'
- $options: ['unsigned' => true]
$paymentStatus
protected
int
$paymentStatus
= 0
Attributes
- #[Column]
- $name: 'payment_status'
- $type: 'integer'
Methods
__construct()
public
__construct([int|null $id = null ][, int $paymentStatus = 0 ][, int $invoiceTypeId = 0 ]) : mixed
Parameters
- $id : int|null = null
- $paymentStatus : int = 0
- $invoiceTypeId : 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>getId()
public
getId() : int|null
Return values
int|nullgetInvoiceTypeId()
public
getInvoiceTypeId() : int
Return values
intgetPaymentStatus()
public
getPaymentStatus() : int
Return values
intisPersisted()
public
isPersisted() : bool
Return values
boolsetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetInvoiceTypeId()
public
setInvoiceTypeId(int $invoiceTypeId) : $this
Parameters
- $invoiceTypeId : int
Return values
$thissetPaymentStatus()
public
setPaymentStatus(int $paymentStatus) : $this
Parameters
- $paymentStatus : 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>