CoolCMS API

InvoiceTypePdfTemplateVariantRel extends InvoiceTypePdfTemplateVariantRel
in package

Tags
extends
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

$invoiceType

protected TInvoiceType|null $invoiceType = null
Attributes
#[EntityOf]
\App\UI\Api\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\Api\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|null

setBuyerVatType()

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
$this

setPaymentRegionId()

public setPaymentRegionId(int|null $paymentRegionId) : $this
Parameters
$paymentRegionId : int|null
Return values
$this

setPdfTemplateVariantId()

public setPdfTemplateVariantId(int|null $pdfTemplateVariantId) : $this
Parameters
$pdfTemplateVariantId : int|null
Return values
$this

setSellerUseVat()

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>
Return values
array<string, string>
On this page

Search results