InvoicePdfTemplateVariantRel
extends InvoicePdfTemplateVariantRel
in package
orphaned: no manager and no live code uses it; replaced by the Invoicer matrix.
See the docblock of the base entity
BaseInvoicePdfTemplateVariantRel. Columns and the composite key live in the Shared base.
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_invoice_pdf_template_variant_relations'
- #[TableAlias]
- 'invoicePdfTemplateVariantRel'
Table of Contents
Properties
- $invoiceTypeId : int
- $paymentRegionId : int
- $pdfTemplateVariantId : int|null
- $productTypeId : int
- $userTypeId : int
Methods
- __construct() : mixed
- The composite key is declared here, not redeclared in the Api leaf: a leaf property with its own `#[ORM\Column]` duplicates the inherited column mapping and the metadata fail to load.
- 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.
- getInvoiceTypeId() : int
- getPaymentRegionId() : int
- getPdfTemplateVariantId() : int|null
- getProductTypeId() : int
- getUserTypeId() : int
- setInvoiceTypeId() : $this
- setPaymentRegionId() : $this
- setPdfTemplateVariantId() : $this
- setProductTypeId() : $this
- setUserTypeId() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$invoiceTypeId
protected
int
$invoiceTypeId
= 0
Attributes
- #[Column]
- $name: 'cms_mod_eshop_invoice_types_invoice_type_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
$paymentRegionId
protected
int
$paymentRegionId
= 0
Attributes
- #[Column]
- $name: 'cms_system_payment_regions_payment_region_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
$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
$productTypeId
= 0
Attributes
- #[Column]
- $name: 'cms_mod_eshop_product_types_product_type_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
$userTypeId
protected
int
$userTypeId
= 0
Attributes
- #[Column]
- $name: 'cms_system_user_types_user_type_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
Methods
__construct()
The composite key is declared here, not redeclared in the Api leaf: a leaf property with its own `#[ORM\Column]` duplicates the inherited column mapping and the metadata fail to load.
public
__construct([int $productTypeId = 0 ][, int $paymentRegionId = 0 ][, int $userTypeId = 0 ][, int $invoiceTypeId = 0 ][, int|null $pdfTemplateVariantId = null ]) : mixed
Parameters
- $productTypeId : int = 0
- $paymentRegionId : int = 0
- $userTypeId : int = 0
- $invoiceTypeId : int = 0
- $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>getInvoiceTypeId()
public
getInvoiceTypeId() : int
Return values
intgetPaymentRegionId()
public
getPaymentRegionId() : int
Return values
intgetPdfTemplateVariantId()
public
getPdfTemplateVariantId() : int|null
Return values
int|nullgetProductTypeId()
public
getProductTypeId() : int
Return values
intgetUserTypeId()
public
getUserTypeId() : int
Return values
intsetInvoiceTypeId()
public
setInvoiceTypeId(int $invoiceTypeId) : $this
Parameters
- $invoiceTypeId : int
Return values
$thissetPaymentRegionId()
public
setPaymentRegionId(int $paymentRegionId) : $this
Parameters
- $paymentRegionId : int
Return values
$thissetPdfTemplateVariantId()
public
setPdfTemplateVariantId(int|null $pdfTemplateVariantId) : $this
Parameters
- $pdfTemplateVariantId : int|null
Return values
$thissetProductTypeId()
public
setProductTypeId(int $productTypeId) : $this
Parameters
- $productTypeId : int
Return values
$thissetUserTypeId()
public
setUserTypeId(int $userTypeId) : $this
Parameters
- $userTypeId : 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>