InvoiceTypePdfTemplateVariantRel
extends InvoiceTypePdfTemplateVariantRel
in package
Matice PDF variant InvoiceType×ProductType×PaymentRegion×BuyerVatType×SellerUseVat — owned collection (`InvoiceType.pdfTemplateVariantRels`, full-replace object-graph save).
The other four parts of the composite PK (productType, paymentRegion, buyerVatType,
sellerUseVat) live in the shared base; buyerVatType is the customer axis (FK to cms_system_user_types).
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_invoicer_invoice_type_pdf_template_variant_relations'
- #[TableAlias]
- 'invoiceTypePdfTemplateVariantRel'
Table of Contents
Properties
- $buyerVatType : int|null
- $invoiceType : TInvoiceType|null
- $invoiceTypeId : int|null
- $paymentRegionId : int|null
- $pdfTemplateVariantId : int|null
- $productTypeId : int|null
- $sellerUseVat : int|null
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.
- getBuyerVatType() : int|null
- Customer axis: FK to `cms_system_user_types` (column `buyer_vat_type`).
- getInvoiceType() : TInvoiceType|null
- getInvoiceTypeId() : int|null
- getPaymentRegionId() : int|null
- getPdfTemplateVariantId() : int|null
- getProductTypeId() : int|null
- getSellerUseVat() : int|null
- Seller mode: 1 = payer, 0 = non-payer (5th PK dimension).
- setBuyerVatType() : TInvoiceType>
- setInvoiceType() : $this
- setInvoiceTypeId() : $this
- setPaymentRegionId() : $this
- setPdfTemplateVariantId() : $this
- setProductTypeId() : $this
- setSellerUseVat() : TInvoiceType>
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$buyerVatType
protected
int|null
$buyerVatType
= null
Attributes
- #[Column]
- $name: 'buyer_vat_type'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$invoiceType
protected
TInvoiceType|null
$invoiceType
= null
Attributes
- #[EntityOf]
- \App\UI\Admin\Invoicer\Models\Entities\InvoiceType::class
- #[Id]
- #[Identity]
- #[JoinColumn]
- $name: 'cms_mod_invoicer_invoice_types_invoice_type_id'
- $referencedColumnName: 'invoice_type_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Admin\Invoicer\Models\Entities\InvoiceType::class
- $inversedBy: 'pdfTemplateVariantRels'
$invoiceTypeId
protected
int|null
$invoiceTypeId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_invoice_types_invoice_type_id'
- $type: 'integer'
- $insertable: false
- $updatable: false
- $options: ['unsigned' => true]
$paymentRegionId
protected
int|null
$paymentRegionId
= null
Attributes
- #[Column]
- $name: 'cms_system_payment_regions_payment_region_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$pdfTemplateVariantId
protected
int|null
$pdfTemplateVariantId
= null
Attributes
- #[Column]
- $name: 'cms_system_pdf_template_variants_pdf_template_variant_id'
- $type: 'integer'
- $nullable: true
- $options: ['unsigned' => true]
$productTypeId
protected
int|null
$productTypeId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_product_types_product_type_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
- #[Identity]
$sellerUseVat
protected
int|null
$sellerUseVat
= null
Attributes
- #[Column]
- $name: 'seller_use_vat'
- $type: 'integer'
- $options: ['unsigned' => true, 'default' => 1]
- #[Id]
- #[Identity]
Methods
__construct()
public
__construct([int|null $productTypeId = null ][, int|null $paymentRegionId = null ][, int|null $buyerVatType = null ][, int|null $sellerUseVat = null ][, int|null $invoiceTypeId = null ][, mixed $invoiceType = null ][, int|null $pdfTemplateVariantId = null ]) : mixed
Parameters
- $productTypeId : int|null = null
- $paymentRegionId : int|null = null
- $buyerVatType : int|null = null
- $sellerUseVat : int|null = null
- $invoiceTypeId : int|null = null
- $invoiceType : mixed = null
- $pdfTemplateVariantId : int|null = null
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>getBuyerVatType()
Customer axis: FK to `cms_system_user_types` (column `buyer_vat_type`).
public
getBuyerVatType() : int|null
Return values
int|nullgetInvoiceType()
public
getInvoiceType() : TInvoiceType|null
Return values
TInvoiceType|nullgetInvoiceTypeId()
public
getInvoiceTypeId() : int|null
Return values
int|nullgetPaymentRegionId()
public
getPaymentRegionId() : int|null
Return values
int|nullgetPdfTemplateVariantId()
public
getPdfTemplateVariantId() : int|null
Return values
int|nullgetProductTypeId()
public
getProductTypeId() : int|null
Return values
int|nullgetSellerUseVat()
Seller mode: 1 = payer, 0 = non-payer (5th PK dimension).
public
getSellerUseVat() : int|null
Return values
int|nullsetBuyerVatType()
public
setBuyerVatType(int|null $buyerVatType) : TInvoiceType>
Parameters
- $buyerVatType : int|null
Return values
TInvoiceType>setInvoiceType()
public
setInvoiceType(TInvoiceType|null $invoiceType) : $this
Parameters
- $invoiceType : TInvoiceType|null
Return values
$thissetInvoiceTypeId()
public
setInvoiceTypeId(int|null $invoiceTypeId) : $this
Parameters
- $invoiceTypeId : int|null
Return values
$thissetPaymentRegionId()
public
setPaymentRegionId(int|null $paymentRegionId) : $this
Parameters
- $paymentRegionId : int|null
Return values
$thissetPdfTemplateVariantId()
public
setPdfTemplateVariantId(int|null $pdfTemplateVariantId) : $this
Parameters
- $pdfTemplateVariantId : int|null
Return values
$thissetProductTypeId()
public
setProductTypeId(int|null $productTypeId) : $this
Parameters
- $productTypeId : int|null
Return values
$thissetSellerUseVat()
public
setSellerUseVat(int|null $sellerUseVat) : TInvoiceType>
Parameters
- $sellerUseVat : int|null
Return values
TInvoiceType>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>