CoolCMS API

InvoiceTemplate extends InvoiceTemplate
in package

Invoice template (`cms_mod_invoicer_invoice_templates`): header plus owned collections of lines (items, gifts, vouchers, shipper, payment method; full-replace object-graph save).

Serves as the source for creating an invoice from a template.

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_invoicer_invoice_templates'
#[TableAlias]
'invoiceTemplate'

Table of Contents

Properties

$bankAccount  : string|null
$bankName  : string|null
$billingLineId  : int|null
$constantSymbol  : string|null
$currencyId  : int|null
$customerCity  : string|null
$customerContactId  : int|null
$customerContactId2  : int|null
$customerCountry  : string|null
$customerDlvCity  : string|null
$customerDlvCountry  : string|null
$customerDlvInformations  : string|null
$customerDlvName  : string|null
$customerDlvName2  : string|null
$customerDlvPostcode  : string|null
$customerDlvStreet  : string|null
$customerEmail  : string|null
$customerId  : int|null
$customerId2  : int|null
$customerInformations  : string|null
$customerName  : string|null
$customerName2  : string|null
$customerPhone  : string|null
$customerPostcode  : string|null
$customerRegNo  : string|null
$customerStreet  : string|null
$customerVatId  : string|null
$customerVatInformations  : string|null
$emailBody  : string|null
$emailSubject  : string|null
$emailTo  : string|null
$gifts  : Collection
$iban  : string|null
$id  : int|null
$informations  : string|null
$insertDatetime  : DateTime
$invoiceTypeId  : int|null
$items  : Collection
$languageId  : int|null
$localization  : object|null
Invoice localization: number and currency formats come from here, not from the current request.
$name  : string|null
$orderId  : int|null
$paymentMethodId  : int|null
$paymentMethods  : Collection
$paymentRegionId  : int|null
$pdfTemplateId  : int|null
$pdfTemplateVariantId  : int|null
$productTypeId  : int|null
$roundedTotalPrice  : string|null
$roundedTotalPriceWithVat  : string|null
$rounding  : string|null
$roundingWithVat  : string|null
$sellerBankAccountId  : int|null
$sellerCity  : string|null
$sellerContactId  : int|null
$sellerCountry  : string|null
$sellerEmail  : string|null
$sellerId  : int|null
$sellerInformations  : string|null
$sellerName  : string|null
$sellerName2  : string|null
$sellerPhone  : string|null
$sellerPostcode  : string|null
$sellerRegNo  : string|null
$sellerStreet  : string|null
$sellerVatId  : string|null
$sellerVatInformations  : string|null
$sendEmail  : bool
$shippers  : Collection
$signature  : string|null
$specificSymbol  : string|null
$swift  : string|null
$totalPrice  : string|null
$totalPriceWithVat  : string|null
$useDeliveryAddress  : bool
$userTypeId  : int|null
$useVat  : bool
$variableSymbol  : string|null
$vouchers  : Collection

Methods

__construct()  : mixed
addGift()  : $this
addItem()  : $this
addPaymentMethod()  : $this
addShipper()  : $this
addVoucher()  : $this
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
clearGifts()  : $this
clearItems()  : $this
clearPaymentMethods()  : $this
clearShippers()  : $this
clearVouchers()  : $this
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getBankAccount()  : string|null
getBankName()  : string|null
getBillingLineId()  : int|null
getConstantSymbol()  : string|null
getCurrencyId()  : int|null
getCustomerCity()  : string|null
getCustomerContactId()  : int|null
getCustomerContactId2()  : int|null
getCustomerCountry()  : string|null
getCustomerDlvCity()  : string|null
getCustomerDlvCountry()  : string|null
getCustomerDlvInformations()  : string|null
getCustomerDlvName()  : string|null
getCustomerDlvName2()  : string|null
getCustomerDlvPostcode()  : string|null
getCustomerDlvStreet()  : string|null
getCustomerEmail()  : string|null
getCustomerId()  : int|null
getCustomerId2()  : int|null
getCustomerInformations()  : string|null
getCustomerName()  : string|null
getCustomerName2()  : string|null
getCustomerPhone()  : string|null
getCustomerPostcode()  : string|null
getCustomerRegNo()  : string|null
getCustomerStreet()  : string|null
getCustomerVatId()  : string|null
getCustomerVatInformations()  : string|null
getEmailBody()  : string|null
getEmailSubject()  : string|null
getEmailTo()  : string|null
getGift()  : TGift|null
getGifts()  : Collection<int, TGift>
getIban()  : string|null
getId()  : int|null
getInformations()  : string|null
getInsertDatetime()  : DateTime
getInvoiceTypeId()  : int|null
getItem()  : TItem|null
getItems()  : Collection<int, TItem>
getLanguageId()  : int|null
getLocalization()  : object|null
getLocalizationId()  : int|null
The object wins over the scalar (a freshly set localization beats the mirror loaded from the DB), but `$localization` is an untyped `object`, hence the guard instead of a plain `?->getId()`. Without it PHPStan reports `object::getId()` and a foreign object in the association would fail at runtime.
getName()  : string|null
getOrderId()  : int|null
getPaymentMethodId()  : int|null
getPaymentMethods()  : Collection<int, TPaymentMethod>
getPaymentRegionId()  : int|null
getPdfTemplateId()  : int|null
getPdfTemplateVariantId()  : int|null
getProductTypeId()  : int|null
getRoundedTotalPrice()  : string|null
getRoundedTotalPriceWithVat()  : string|null
getRounding()  : string|null
getRoundingWithVat()  : string|null
getSellerBankAccountId()  : int|null
getSellerCity()  : string|null
getSellerContactId()  : int|null
getSellerCountry()  : string|null
getSellerEmail()  : string|null
getSellerId()  : int|null
getSellerInformations()  : string|null
getSellerName()  : string|null
getSellerName2()  : string|null
getSellerPhone()  : string|null
getSellerPostcode()  : string|null
getSellerRegNo()  : string|null
getSellerStreet()  : string|null
getSellerVatId()  : string|null
getSellerVatInformations()  : string|null
getSendEmail()  : bool
getShippers()  : Collection<int, TShipper>
getSignature()  : string|null
getSpecificSymbol()  : string|null
getSwift()  : string|null
getTotalPrice()  : string|null
getTotalPriceWithVat()  : string|null
getUseDeliveryAddress()  : bool
getUserTypeId()  : int|null
getUseVat()  : bool
getVariableSymbol()  : string|null
getVoucher()  : TVoucher|null
getVouchers()  : Collection<int, TVoucher>
giftCollectionInit()  : void
isPersisted()  : bool
isSendEmail()  : bool
isUseDeliveryAddress()  : bool
isUseVat()  : bool
itemCollectionInit()  : void
paymentMethodCollectionInit()  : void
removeGift()  : $this
removeItem()  : $this
removePaymentMethod()  : $this
removeShipper()  : $this
removeVoucher()  : $this
setBankAccount()  : $this
setBankName()  : $this
setBillingLineId()  : $this
setConstantSymbol()  : $this
setCurrencyId()  : $this
setCustomerCity()  : $this
setCustomerContactId()  : $this
setCustomerContactId2()  : $this
setCustomerCountry()  : $this
setCustomerDlvCity()  : $this
setCustomerDlvCountry()  : $this
setCustomerDlvInformations()  : $this
setCustomerDlvName()  : $this
setCustomerDlvName2()  : $this
setCustomerDlvPostcode()  : $this
setCustomerDlvStreet()  : $this
setCustomerEmail()  : $this
setCustomerId()  : $this
setCustomerId2()  : $this
setCustomerInformations()  : $this
setCustomerName()  : $this
setCustomerName2()  : $this
setCustomerPhone()  : $this
setCustomerPostcode()  : $this
setCustomerRegNo()  : $this
setCustomerStreet()  : $this
setCustomerVatId()  : $this
setCustomerVatInformations()  : $this
setEmailBody()  : $this
setEmailSubject()  : $this
setEmailTo()  : $this
setGifts()  : $this
setIban()  : $this
setId()  : $this
setInformations()  : $this
setInsertDatetime()  : $this
setInvoiceTypeId()  : $this
setItems()  : $this
setLanguageId()  : $this
setLocalization()  : $this
IMPORTANT: deliberately without the side effect `$this->localizationId = $localization?->getId()`.
setLocalizationId()  : $this
The FK mirror is set by the form together with the association: Api `resolveRelations()` fills a null association from the mirror (entity loaded without include), so clearing the localization must not carry the old mirror over. In the DB the column is written only through the association.
setName()  : $this
setOrderId()  : $this
setPaymentMethodId()  : $this
setPaymentMethods()  : $this
setPaymentRegionId()  : $this
setPdfTemplateId()  : $this
setPdfTemplateVariantId()  : $this
setProductTypeId()  : $this
setRoundedTotalPrice()  : $this
setRoundedTotalPriceWithVat()  : $this
setRounding()  : $this
setRoundingWithVat()  : $this
setSellerBankAccountId()  : $this
setSellerCity()  : $this
setSellerContactId()  : $this
setSellerCountry()  : $this
setSellerEmail()  : $this
setSellerId()  : $this
setSellerInformations()  : $this
setSellerName()  : $this
setSellerName2()  : $this
setSellerPhone()  : $this
setSellerPostcode()  : $this
setSellerRegNo()  : $this
setSellerStreet()  : $this
setSellerVatId()  : $this
setSellerVatInformations()  : $this
setSendEmail()  : $this
setShippers()  : $this
setSignature()  : $this
setSpecificSymbol()  : $this
setSwift()  : $this
setTotalPrice()  : $this
setTotalPriceWithVat()  : $this
setUseDeliveryAddress()  : $this
setUserTypeId()  : $this
setUseVat()  : $this
setVariableSymbol()  : $this
setVouchers()  : $this
shipperCollectionInit()  : void
voucherCollectionInit()  : void
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$bankAccount

protected string|null $bankAccount = null
Attributes
#[Column]
$name: 'bank_account'
$type: 'string'
$length: 50
$nullable: true

$bankName

protected string|null $bankName = null
Attributes
#[Column]
$name: 'bank_name'
$type: 'string'
$length: 255
$nullable: true

$billingLineId

protected int|null $billingLineId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_billing_lines_billing_line_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$constantSymbol

protected string|null $constantSymbol = null
Attributes
#[Column]
$name: 'constant_symbol'
$type: 'string'
$length: 255
$nullable: true

$currencyId

protected int|null $currencyId = null
Attributes
#[Column]
$name: 'cms_system_currencies_currency_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$customerCity

protected string|null $customerCity = null
Attributes
#[Column]
$name: 'customer_city'
$type: 'string'
$length: 255
$nullable: true

$customerContactId

protected int|null $customerContactId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_customer_contacts_customer_contact_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$customerContactId2

protected int|null $customerContactId2 = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_customer_contacts_customer_contact_id2'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$customerCountry

protected string|null $customerCountry = null
Attributes
#[Column]
$name: 'customer_country'
$type: 'string'
$length: 255
$nullable: true

$customerDlvCity

protected string|null $customerDlvCity = null
Attributes
#[Column]
$name: 'customer_dlv_city'
$type: 'string'
$length: 255
$nullable: true

$customerDlvCountry

protected string|null $customerDlvCountry = null
Attributes
#[Column]
$name: 'customer_dlv_country'
$type: 'string'
$length: 255
$nullable: true

$customerDlvInformations

protected string|null $customerDlvInformations = null
Attributes
#[Column]
$name: 'customer_dlv_informations'
$type: 'text'
$nullable: true

$customerDlvName

protected string|null $customerDlvName = null
Attributes
#[Column]
$name: 'customer_dlv_name'
$type: 'string'
$length: 255
$nullable: true

$customerDlvName2

protected string|null $customerDlvName2 = null
Attributes
#[Column]
$name: 'customer_dlv_name_2'
$type: 'string'
$length: 255
$nullable: true

$customerDlvPostcode

protected string|null $customerDlvPostcode = null
Attributes
#[Column]
$name: 'customer_dlv_postcode'
$type: 'string'
$length: 50
$nullable: true

$customerDlvStreet

protected string|null $customerDlvStreet = null
Attributes
#[Column]
$name: 'customer_dlv_street'
$type: 'string'
$length: 255
$nullable: true

$customerEmail

protected string|null $customerEmail = null
Attributes
#[Column]
$name: 'customer_email'
$type: 'string'
$length: 255
$nullable: true

$customerId

protected int|null $customerId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_customers_customer_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$customerId2

protected int|null $customerId2 = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_customers_customer_id2'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$customerInformations

protected string|null $customerInformations = null
Attributes
#[Column]
$name: 'customer_informations'
$type: 'text'
$nullable: true

$customerName

protected string|null $customerName = null
Attributes
#[Column]
$name: 'customer_name'
$type: 'string'
$length: 255
$nullable: true

$customerName2

protected string|null $customerName2 = null
Attributes
#[Column]
$name: 'customer_name_2'
$type: 'string'
$length: 255
$nullable: true

$customerPhone

protected string|null $customerPhone = null
Attributes
#[Column]
$name: 'customer_phone'
$type: 'string'
$length: 255
$nullable: true

$customerPostcode

protected string|null $customerPostcode = null
Attributes
#[Column]
$name: 'customer_postcode'
$type: 'string'
$length: 20
$nullable: true

$customerRegNo

protected string|null $customerRegNo = null
Attributes
#[Column]
$name: 'customer_reg_no'
$type: 'string'
$length: 255
$nullable: true

$customerStreet

protected string|null $customerStreet = null
Attributes
#[Column]
$name: 'customer_street'
$type: 'string'
$length: 255
$nullable: true

$customerVatId

protected string|null $customerVatId = null
Attributes
#[Column]
$name: 'customer_vat_id'
$type: 'string'
$length: 255
$nullable: true

$customerVatInformations

protected string|null $customerVatInformations = null
Attributes
#[Column]
$name: 'customer_vat_informations'
$type: 'text'
$nullable: true

$emailBody

protected string|null $emailBody = null
Attributes
#[Column]
$name: 'email_body'
$type: 'text'
$nullable: true

$emailSubject

protected string|null $emailSubject = null
Attributes
#[Column]
$name: 'email_subject'
$type: 'string'
$length: 255
$nullable: true

$emailTo

protected string|null $emailTo = null
Attributes
#[Column]
$name: 'email_to'
$type: 'string'
$length: 255
$nullable: true

$gifts

protected Collection $gifts
Attributes
#[CollectionOf]
\App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateGift::class
$owned: true
#[OneToMany]
$targetEntity: \App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateGift::class
$mappedBy: 'invoiceTemplate'
$cascade: ["persist", "remove"]
$orphanRemoval: true
$fetch: "LAZY"

$iban

protected string|null $iban = null
Attributes
#[Column]
$name: 'iban'
$type: 'string'
$length: 255
$nullable: true

$id

protected int|null $id = null
Attributes
#[Column]
$name: 'invoice_template_id'
$type: 'integer'
$options: ['unsigned' => true]
#[GeneratedValue]
#[Id]

$informations

protected string|null $informations = null
Attributes
#[Column]
$name: 'informations'
$type: 'text'
$nullable: true

$insertDatetime

protected DateTime $insertDatetime = new DateTime()
Attributes
#[Column]
$name: 'insert_datetime'
$type: 'datetime'
#[ExternalReadonly]

$invoiceTypeId

protected int|null $invoiceTypeId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_invoice_types_invoice_type_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$items

protected Collection $items
Attributes
#[CollectionOf]
\App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateItem::class
$owned: true
#[OneToMany]
$targetEntity: \App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateItem::class
$mappedBy: 'invoiceTemplate'
$cascade: ["persist", "remove"]
$orphanRemoval: true
$fetch: "LAZY"

$languageId

protected int|null $languageId = null
Attributes
#[Column]
$name: 'cms_system_languages_language_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$localization

Invoice localization: number and currency formats come from here, not from the current request.

protected object|null $localization = null

Load it via ->include(['localization']), the same way the currency is loaded.

Attributes
#[EntityOf]
\App\UI\Admin\System\Models\Entities\Localization::class
#[JoinColumn]
$name: 'cms_system_localizations_localization_id'
$referencedColumnName: 'localization_id'
$onDelete: 'SET NULL'
#[ManyToOne]
$targetEntity: \App\UI\Admin\System\Models\Entities\Localization::class
$fetch: 'LAZY'

$name

protected string|null $name = null
Attributes
#[Column]
$name: 'name'
$type: 'string'
$length: 255
$nullable: true

$orderId

protected int|null $orderId = null
Attributes
#[Column]
$name: 'order_id'
$type: 'bigint'
$nullable: true

$paymentMethodId

protected int|null $paymentMethodId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_payment_methods_payment_method_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$paymentMethods

protected Collection $paymentMethods
Attributes
#[CollectionOf]
\App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplatePaymentMethod::class
$owned: true
#[OneToMany]
$targetEntity: \App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplatePaymentMethod::class
$mappedBy: 'invoiceTemplate'
$cascade: ["persist", "remove"]
$orphanRemoval: true
$fetch: "LAZY"

$paymentRegionId

protected int|null $paymentRegionId = null
Attributes
#[Column]
$name: 'cms_system_payment_regions_payment_region_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$pdfTemplateId

protected int|null $pdfTemplateId = null
Attributes
#[Column]
$name: 'cms_system_pdf_templates_pdf_template_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$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'
$nullable: true
$options: ['unsigned' => true]

$roundedTotalPrice

protected string|null $roundedTotalPrice = null
Attributes
#[Column]
$name: 'rounded_total_price'
$type: 'decimal'
$precision: 10
$scale: 3
$nullable: true

$roundedTotalPriceWithVat

protected string|null $roundedTotalPriceWithVat = null
Attributes
#[Column]
$name: 'rounded_total_price_with_vat'
$type: 'decimal'
$precision: 10
$scale: 3
$nullable: true

$rounding

protected string|null $rounding = null
Attributes
#[Column]
$name: 'rounding'
$type: 'decimal'
$precision: 10
$scale: 3
$nullable: true

$roundingWithVat

protected string|null $roundingWithVat = null
Attributes
#[Column]
$name: 'rounding_with_vat'
$type: 'decimal'
$precision: 10
$scale: 3
$nullable: true

$sellerBankAccountId

protected int|null $sellerBankAccountId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_seller_bank_accounts_seller_bank_account_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$sellerCity

protected string|null $sellerCity = null
Attributes
#[Column]
$name: 'seller_city'
$type: 'string'
$length: 255
$nullable: true

$sellerContactId

protected int|null $sellerContactId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_seller_contacts_seller_contact_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$sellerCountry

protected string|null $sellerCountry = null
Attributes
#[Column]
$name: 'seller_country'
$type: 'string'
$length: 255
$nullable: true

$sellerEmail

protected string|null $sellerEmail = null
Attributes
#[Column]
$name: 'seller_email'
$type: 'string'
$length: 255
$nullable: true

$sellerId

protected int|null $sellerId = null
Attributes
#[Column]
$name: 'cms_mod_invoicer_sellers_seller_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$sellerInformations

protected string|null $sellerInformations = null
Attributes
#[Column]
$name: 'seller_informations'
$type: 'text'
$nullable: true

$sellerName

protected string|null $sellerName = null
Attributes
#[Column]
$name: 'seller_name'
$type: 'string'
$length: 255
$nullable: true

$sellerName2

protected string|null $sellerName2 = null
Attributes
#[Column]
$name: 'seller_name_2'
$type: 'string'
$length: 255
$nullable: true

$sellerPhone

protected string|null $sellerPhone = null
Attributes
#[Column]
$name: 'seller_phone'
$type: 'string'
$length: 255
$nullable: true

$sellerPostcode

protected string|null $sellerPostcode = null
Attributes
#[Column]
$name: 'seller_postcode'
$type: 'string'
$length: 20
$nullable: true

$sellerRegNo

protected string|null $sellerRegNo = null
Attributes
#[Column]
$name: 'seller_reg_no'
$type: 'string'
$length: 255
$nullable: true

$sellerStreet

protected string|null $sellerStreet = null
Attributes
#[Column]
$name: 'seller_street'
$type: 'string'
$length: 255
$nullable: true

$sellerVatId

protected string|null $sellerVatId = null
Attributes
#[Column]
$name: 'seller_vat_id'
$type: 'string'
$length: 255
$nullable: true

$sellerVatInformations

protected string|null $sellerVatInformations = null
Attributes
#[Column]
$name: 'seller_vat_informations'
$type: 'text'
$nullable: true

$sendEmail

protected bool $sendEmail = false
Attributes
#[Column]
$name: 'send_email'
$type: 'boolean'

$shippers

protected Collection $shippers
Attributes
#[CollectionOf]
\App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateShipper::class
$owned: true
#[OneToMany]
$targetEntity: \App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateShipper::class
$mappedBy: 'invoiceTemplate'
$cascade: ["persist", "remove"]
$orphanRemoval: true
$fetch: "LAZY"

$signature

protected string|null $signature = null
Attributes
#[Column]
$name: 'signature'
$type: 'text'
$nullable: true

$specificSymbol

protected string|null $specificSymbol = null
Attributes
#[Column]
$name: 'specific_symbol'
$type: 'string'
$length: 255
$nullable: true

$swift

protected string|null $swift = null
Attributes
#[Column]
$name: 'swift'
$type: 'string'
$length: 255
$nullable: true

$totalPrice

protected string|null $totalPrice = null
Attributes
#[Column]
$name: 'total_price'
$type: 'decimal'
$precision: 10
$scale: 3
$nullable: true

$totalPriceWithVat

protected string|null $totalPriceWithVat = null
Attributes
#[Column]
$name: 'total_price_with_vat'
$type: 'decimal'
$precision: 10
$scale: 3
$nullable: true

$useDeliveryAddress

protected bool $useDeliveryAddress = false
Attributes
#[Column]
$name: 'use_delivery_address'
$type: 'boolean'

$userTypeId

protected int|null $userTypeId = null
Attributes
#[Column]
$name: 'cms_system_user_types_user_type_id'
$type: 'integer'
$nullable: true
$options: ['unsigned' => true]

$useVat

protected bool $useVat = false
Attributes
#[Column]
$name: 'use_vat'
$type: 'boolean'

$variableSymbol

protected string|null $variableSymbol = null
Attributes
#[Column]
$name: 'variable_symbol'
$type: 'string'
$length: 255
$nullable: true

$vouchers

protected Collection $vouchers
Attributes
#[CollectionOf]
\App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateVoucher::class
$owned: true
#[OneToMany]
$targetEntity: \App\UI\Admin\Invoicer\Models\Entities\InvoiceTemplateVoucher::class
$mappedBy: 'invoiceTemplate'
$cascade: ["persist", "remove"]
$orphanRemoval: true
$fetch: "LAZY"

Methods

__construct()

public __construct([int|null $id = null ][, int|null $billingLineId = null ][, int|null $productTypeId = null ][, int|null $invoiceTypeId = null ][, int|null $pdfTemplateId = null ][, int|null $pdfTemplateVariantId = null ][, string|null $variableSymbol = null ][, string|null $constantSymbol = null ][, string|null $specificSymbol = null ][, DateTime $insertDatetime = new DateTime() ][, int|null $sellerId = null ][, int|null $sellerContactId = null ][, string|null $sellerName = null ][, string|null $sellerName2 = null ][, string|null $sellerEmail = null ][, string|null $sellerPhone = null ][, string|null $sellerRegNo = null ][, string|null $sellerVatId = null ][, string|null $sellerStreet = null ][, string|null $sellerCity = null ][, string|null $sellerPostcode = null ][, string|null $sellerCountry = null ][, string|null $sellerInformations = null ][, string|null $sellerVatInformations = null ][, int|null $customerId = null ][, int|null $customerContactId = null ][, string|null $customerName = null ][, string|null $customerName2 = null ][, string|null $customerEmail = null ][, string|null $customerPhone = null ][, string|null $customerRegNo = null ][, string|null $customerVatId = null ][, string|null $customerStreet = null ][, string|null $customerCity = null ][, string|null $customerPostcode = null ][, string|null $customerCountry = null ][, string|null $customerInformations = null ][, string|null $customerVatInformations = null ][, bool $useDeliveryAddress = false ][, int|null $customerId2 = null ][, int|null $customerContactId2 = null ][, int|null $userTypeId = null ][, string|null $customerDlvName = null ][, string|null $customerDlvName2 = null ][, string|null $customerDlvStreet = null ][, string|null $customerDlvCity = null ][, string|null $customerDlvPostcode = null ][, string|null $customerDlvCountry = null ][, string|null $customerDlvInformations = null ][, int|null $paymentMethodId = null ][, int|null $paymentRegionId = null ][, int|null $languageId = null ][, int|null $currencyId = null ][, bool $useVat = false ][, int|null $sellerBankAccountId = null ][, string|null $bankName = null ][, string|null $bankAccount = null ][, string|null $iban = null ][, string|null $swift = null ][, string|null $informations = null ][, string|null $totalPrice = null ][, string|null $totalPriceWithVat = null ][, string|null $rounding = null ][, string|null $roundingWithVat = null ][, string|null $roundedTotalPrice = null ][, string|null $roundedTotalPriceWithVat = null ][, string|null $signature = null ][, bool $sendEmail = false ][, string|null $emailTo = null ][, string|null $emailSubject = null ][, string|null $emailBody = null ][, int|null $orderId = null ][, string|null $name = null ][, Collection $items = new ArrayCollection() ][, Collection $gifts = new ArrayCollection() ][, Collection $vouchers = new ArrayCollection() ][, Collection $shippers = new ArrayCollection() ][, Collection $paymentMethods = new ArrayCollection() ][, mixed $localization = null ][, int|null $localizationId = null ]) : mixed
Parameters
$id : int|null = null
$billingLineId : int|null = null
$productTypeId : int|null = null
$invoiceTypeId : int|null = null
$pdfTemplateId : int|null = null
$pdfTemplateVariantId : int|null = null
$variableSymbol : string|null = null
$constantSymbol : string|null = null
$specificSymbol : string|null = null
$insertDatetime : DateTime = new DateTime()
$sellerId : int|null = null
$sellerContactId : int|null = null
$sellerName : string|null = null
$sellerName2 : string|null = null
$sellerEmail : string|null = null
$sellerPhone : string|null = null
$sellerRegNo : string|null = null
$sellerVatId : string|null = null
$sellerStreet : string|null = null
$sellerCity : string|null = null
$sellerPostcode : string|null = null
$sellerCountry : string|null = null
$sellerInformations : string|null = null
$sellerVatInformations : string|null = null
$customerId : int|null = null
$customerContactId : int|null = null
$customerName : string|null = null
$customerName2 : string|null = null
$customerEmail : string|null = null
$customerPhone : string|null = null
$customerRegNo : string|null = null
$customerVatId : string|null = null
$customerStreet : string|null = null
$customerCity : string|null = null
$customerPostcode : string|null = null
$customerCountry : string|null = null
$customerInformations : string|null = null
$customerVatInformations : string|null = null
$useDeliveryAddress : bool = false
$customerId2 : int|null = null
$customerContactId2 : int|null = null
$userTypeId : int|null = null
$customerDlvName : string|null = null
$customerDlvName2 : string|null = null
$customerDlvStreet : string|null = null
$customerDlvCity : string|null = null
$customerDlvPostcode : string|null = null
$customerDlvCountry : string|null = null
$customerDlvInformations : string|null = null
$paymentMethodId : int|null = null
$paymentRegionId : int|null = null
$languageId : int|null = null
$currencyId : int|null = null
$useVat : bool = false
$sellerBankAccountId : int|null = null
$bankName : string|null = null
$bankAccount : string|null = null
$iban : string|null = null
$swift : string|null = null
$informations : string|null = null
$totalPrice : string|null = null
$totalPriceWithVat : string|null = null
$rounding : string|null = null
$roundingWithVat : string|null = null
$roundedTotalPrice : string|null = null
$roundedTotalPriceWithVat : string|null = null
$signature : string|null = null
$sendEmail : bool = false
$emailTo : string|null = null
$emailSubject : string|null = null
$emailBody : string|null = null
$orderId : int|null = null
$name : string|null = null
$items : Collection = new ArrayCollection()
$gifts : Collection = new ArrayCollection()
$vouchers : Collection = new ArrayCollection()
$shippers : Collection = new ArrayCollection()
$paymentMethods : Collection = new ArrayCollection()
$localization : mixed = null
$localizationId : int|null = null

addGift()

public addGift(TGift $gift) : $this
Parameters
$gift : TGift
Return values
$this

addItem()

public addItem(TItem $item) : $this
Parameters
$item : TItem
Return values
$this

addPaymentMethod()

public addPaymentMethod(TPaymentMethod $paymentMethod) : $this
Parameters
$paymentMethod : TPaymentMethod
Return values
$this

addShipper()

public addShipper(TShipper $shipper) : $this
Parameters
$shipper : TShipper
Return values
$this

addVoucher()

public addVoucher(TVoucher $voucher) : $this
Parameters
$voucher : TVoucher
Return values
$this

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>

getBankAccount()

public getBankAccount() : string|null
Return values
string|null

getBankName()

public getBankName() : string|null
Return values
string|null

getBillingLineId()

public getBillingLineId() : int|null
Return values
int|null

getConstantSymbol()

public getConstantSymbol() : string|null
Return values
string|null

getCurrencyId()

public getCurrencyId() : int|null
Return values
int|null

getCustomerCity()

public getCustomerCity() : string|null
Return values
string|null

getCustomerContactId()

public getCustomerContactId() : int|null
Return values
int|null

getCustomerContactId2()

public getCustomerContactId2() : int|null
Return values
int|null

getCustomerCountry()

public getCustomerCountry() : string|null
Return values
string|null

getCustomerDlvCity()

public getCustomerDlvCity() : string|null
Return values
string|null

getCustomerDlvCountry()

public getCustomerDlvCountry() : string|null
Return values
string|null

getCustomerDlvInformations()

public getCustomerDlvInformations() : string|null
Return values
string|null

getCustomerDlvName()

public getCustomerDlvName() : string|null
Return values
string|null

getCustomerDlvName2()

public getCustomerDlvName2() : string|null
Return values
string|null

getCustomerDlvPostcode()

public getCustomerDlvPostcode() : string|null
Return values
string|null

getCustomerDlvStreet()

public getCustomerDlvStreet() : string|null
Return values
string|null

getCustomerEmail()

public getCustomerEmail() : string|null
Return values
string|null

getCustomerId()

public getCustomerId() : int|null
Return values
int|null

getCustomerId2()

public getCustomerId2() : int|null
Return values
int|null

getCustomerInformations()

public getCustomerInformations() : string|null
Return values
string|null

getCustomerName()

public getCustomerName() : string|null
Return values
string|null

getCustomerName2()

public getCustomerName2() : string|null
Return values
string|null

getCustomerPhone()

public getCustomerPhone() : string|null
Return values
string|null

getCustomerPostcode()

public getCustomerPostcode() : string|null
Return values
string|null

getCustomerRegNo()

public getCustomerRegNo() : string|null
Return values
string|null

getCustomerStreet()

public getCustomerStreet() : string|null
Return values
string|null

getCustomerVatId()

public getCustomerVatId() : string|null
Return values
string|null

getCustomerVatInformations()

public getCustomerVatInformations() : string|null
Return values
string|null

getEmailBody()

public getEmailBody() : string|null
Return values
string|null

getEmailSubject()

public getEmailSubject() : string|null
Return values
string|null

getEmailTo()

public getEmailTo() : string|null
Return values
string|null

getGift()

public getGift(int $giftId) : TGift|null
Parameters
$giftId : int
Return values
TGift|null

getGifts()

public getGifts() : Collection<int, TGift>
Return values
Collection<int, TGift>

getInformations()

public getInformations() : string|null
Return values
string|null

getInsertDatetime()

public getInsertDatetime() : DateTime
Return values
DateTime

getInvoiceTypeId()

public getInvoiceTypeId() : int|null
Return values
int|null

getItem()

public getItem(int $itemId) : TItem|null
Parameters
$itemId : int
Return values
TItem|null

getItems()

public getItems() : Collection<int, TItem>
Return values
Collection<int, TItem>

getLanguageId()

public getLanguageId() : int|null
Return values
int|null

getLocalization()

public getLocalization() : object|null
Return values
object|null

getLocalizationId()

The object wins over the scalar (a freshly set localization beats the mirror loaded from the DB), but `$localization` is an untyped `object`, hence the guard instead of a plain `?->getId()`. Without it PHPStan reports `object::getId()` and a foreign object in the association would fail at runtime.

public getLocalizationId() : int|null
Return values
int|null

getPaymentMethodId()

public getPaymentMethodId() : int|null
Return values
int|null

getPaymentMethods()

public getPaymentMethods() : Collection<int, TPaymentMethod>
Return values
Collection<int, TPaymentMethod>

getPaymentRegionId()

public getPaymentRegionId() : int|null
Return values
int|null

getPdfTemplateId()

public getPdfTemplateId() : int|null
Return values
int|null

getPdfTemplateVariantId()

public getPdfTemplateVariantId() : int|null
Return values
int|null

getProductTypeId()

public getProductTypeId() : int|null
Return values
int|null

getRoundedTotalPrice()

public getRoundedTotalPrice() : string|null
Return values
string|null

getRoundedTotalPriceWithVat()

public getRoundedTotalPriceWithVat() : string|null
Return values
string|null

getRounding()

public getRounding() : string|null
Return values
string|null

getRoundingWithVat()

public getRoundingWithVat() : string|null
Return values
string|null

getSellerBankAccountId()

public getSellerBankAccountId() : int|null
Return values
int|null

getSellerCity()

public getSellerCity() : string|null
Return values
string|null

getSellerContactId()

public getSellerContactId() : int|null
Return values
int|null

getSellerCountry()

public getSellerCountry() : string|null
Return values
string|null

getSellerEmail()

public getSellerEmail() : string|null
Return values
string|null

getSellerId()

public getSellerId() : int|null
Return values
int|null

getSellerInformations()

public getSellerInformations() : string|null
Return values
string|null

getSellerName()

public getSellerName() : string|null
Return values
string|null

getSellerName2()

public getSellerName2() : string|null
Return values
string|null

getSellerPhone()

public getSellerPhone() : string|null
Return values
string|null

getSellerPostcode()

public getSellerPostcode() : string|null
Return values
string|null

getSellerRegNo()

public getSellerRegNo() : string|null
Return values
string|null

getSellerStreet()

public getSellerStreet() : string|null
Return values
string|null

getSellerVatId()

public getSellerVatId() : string|null
Return values
string|null

getSellerVatInformations()

public getSellerVatInformations() : string|null
Return values
string|null

getShippers()

public getShippers() : Collection<int, TShipper>
Return values
Collection<int, TShipper>

getSignature()

public getSignature() : string|null
Return values
string|null

getSpecificSymbol()

public getSpecificSymbol() : string|null
Return values
string|null

getSwift()

public getSwift() : string|null
Return values
string|null

getTotalPrice()

public getTotalPrice() : string|null
Return values
string|null

getTotalPriceWithVat()

public getTotalPriceWithVat() : string|null
Return values
string|null

getUseDeliveryAddress()

public getUseDeliveryAddress() : bool
Return values
bool

getUserTypeId()

public getUserTypeId() : int|null
Return values
int|null

getVariableSymbol()

public getVariableSymbol() : string|null
Return values
string|null

getVoucher()

public getVoucher(int $voucherId) : TVoucher|null
Parameters
$voucherId : int
Return values
TVoucher|null

getVouchers()

public getVouchers() : Collection<int, TVoucher>
Return values
Collection<int, TVoucher>

isUseDeliveryAddress()

public isUseDeliveryAddress() : bool
Return values
bool

removeGift()

public removeGift(TGift $gift) : $this
Parameters
$gift : TGift
Return values
$this

removeItem()

public removeItem(TItem $item) : $this
Parameters
$item : TItem
Return values
$this

removePaymentMethod()

public removePaymentMethod(TPaymentMethod $paymentMethod) : $this
Parameters
$paymentMethod : TPaymentMethod
Return values
$this

removeShipper()

public removeShipper(TShipper $shipper) : $this
Parameters
$shipper : TShipper
Return values
$this

removeVoucher()

public removeVoucher(TVoucher $voucher) : $this
Parameters
$voucher : TVoucher
Return values
$this

setBankAccount()

public setBankAccount(string|null $bankAccount) : $this
Parameters
$bankAccount : string|null
Return values
$this

setBankName()

public setBankName(string|null $bankName) : $this
Parameters
$bankName : string|null
Return values
$this

setBillingLineId()

public setBillingLineId(int|null $billingLineId) : $this
Parameters
$billingLineId : int|null
Return values
$this

setConstantSymbol()

public setConstantSymbol(string|null $constantSymbol) : $this
Parameters
$constantSymbol : string|null
Return values
$this

setCurrencyId()

public setCurrencyId(int|null $currencyId) : $this
Parameters
$currencyId : int|null
Return values
$this

setCustomerCity()

public setCustomerCity(string|null $customerCity) : $this
Parameters
$customerCity : string|null
Return values
$this

setCustomerContactId()

public setCustomerContactId(int|null $customerContactId) : $this
Parameters
$customerContactId : int|null
Return values
$this

setCustomerContactId2()

public setCustomerContactId2(int|null $customerContactId2) : $this
Parameters
$customerContactId2 : int|null
Return values
$this

setCustomerCountry()

public setCustomerCountry(string|null $customerCountry) : $this
Parameters
$customerCountry : string|null
Return values
$this

setCustomerDlvCity()

public setCustomerDlvCity(string|null $customerDlvCity) : $this
Parameters
$customerDlvCity : string|null
Return values
$this

setCustomerDlvCountry()

public setCustomerDlvCountry(string|null $customerDlvCountry) : $this
Parameters
$customerDlvCountry : string|null
Return values
$this

setCustomerDlvInformations()

public setCustomerDlvInformations(string|null $customerDlvInformations) : $this
Parameters
$customerDlvInformations : string|null
Return values
$this

setCustomerDlvName()

public setCustomerDlvName(string|null $customerDlvName) : $this
Parameters
$customerDlvName : string|null
Return values
$this

setCustomerDlvName2()

public setCustomerDlvName2(string|null $customerDlvName2) : $this
Parameters
$customerDlvName2 : string|null
Return values
$this

setCustomerDlvPostcode()

public setCustomerDlvPostcode(string|null $customerDlvPostcode) : $this
Parameters
$customerDlvPostcode : string|null
Return values
$this

setCustomerDlvStreet()

public setCustomerDlvStreet(string|null $customerDlvStreet) : $this
Parameters
$customerDlvStreet : string|null
Return values
$this

setCustomerEmail()

public setCustomerEmail(string|null $customerEmail) : $this
Parameters
$customerEmail : string|null
Return values
$this

setCustomerId()

public setCustomerId(int|null $customerId) : $this
Parameters
$customerId : int|null
Return values
$this

setCustomerId2()

public setCustomerId2(int|null $customerId2) : $this
Parameters
$customerId2 : int|null
Return values
$this

setCustomerInformations()

public setCustomerInformations(string|null $customerInformations) : $this
Parameters
$customerInformations : string|null
Return values
$this

setCustomerName()

public setCustomerName(string|null $customerName) : $this
Parameters
$customerName : string|null
Return values
$this

setCustomerName2()

public setCustomerName2(string|null $customerName2) : $this
Parameters
$customerName2 : string|null
Return values
$this

setCustomerPhone()

public setCustomerPhone(string|null $customerPhone) : $this
Parameters
$customerPhone : string|null
Return values
$this

setCustomerPostcode()

public setCustomerPostcode(string|null $customerPostcode) : $this
Parameters
$customerPostcode : string|null
Return values
$this

setCustomerRegNo()

public setCustomerRegNo(string|null $customerRegNo) : $this
Parameters
$customerRegNo : string|null
Return values
$this

setCustomerStreet()

public setCustomerStreet(string|null $customerStreet) : $this
Parameters
$customerStreet : string|null
Return values
$this

setCustomerVatId()

public setCustomerVatId(string|null $customerVatId) : $this
Parameters
$customerVatId : string|null
Return values
$this

setCustomerVatInformations()

public setCustomerVatInformations(string|null $customerVatInformations) : $this
Parameters
$customerVatInformations : string|null
Return values
$this

setEmailBody()

public setEmailBody(string|null $emailBody) : $this
Parameters
$emailBody : string|null
Return values
$this

setEmailSubject()

public setEmailSubject(string|null $emailSubject) : $this
Parameters
$emailSubject : string|null
Return values
$this

setEmailTo()

public setEmailTo(string|null $emailTo) : $this
Parameters
$emailTo : string|null
Return values
$this

setGifts()

public setGifts(Collection<int, TGift>|array<int, TGift> $gifts) : $this
Parameters
$gifts : Collection<int, TGift>|array<int, TGift>
Return values
$this

setIban()

public setIban(string|null $iban) : $this
Parameters
$iban : string|null
Return values
$this

setId()

public setId(int|null $id) : $this
Parameters
$id : int|null
Return values
$this

setInformations()

public setInformations(string|null $informations) : $this
Parameters
$informations : string|null
Return values
$this

setInsertDatetime()

public setInsertDatetime(DateTime $insertDatetime) : $this
Parameters
$insertDatetime : DateTime
Return values
$this

setInvoiceTypeId()

public setInvoiceTypeId(int|null $invoiceTypeId) : $this
Parameters
$invoiceTypeId : int|null
Return values
$this

setItems()

public setItems(Collection<int, TItem>|array<int, TItem> $items) : $this
Parameters
$items : Collection<int, TItem>|array<int, TItem>
Return values
$this

setLanguageId()

public setLanguageId(int|null $languageId) : $this
Parameters
$languageId : int|null
Return values
$this

setLocalization()

IMPORTANT: deliberately without the side effect `$this->localizationId = $localization?->getId()`.

public setLocalization(object|null $localization) : $this

With two-phase hydration the setter runs before the shell gets its id and would overwrite the correctly loaded read-only scalar with null.

Parameters
$localization : object|null
Return values
$this

setLocalizationId()

The FK mirror is set by the form together with the association: Api `resolveRelations()` fills a null association from the mirror (entity loaded without include), so clearing the localization must not carry the old mirror over. In the DB the column is written only through the association.

public setLocalizationId(int|null $localizationId) : $this
Parameters
$localizationId : int|null
Return values
$this

setName()

public setName(string|null $name) : $this
Parameters
$name : string|null
Return values
$this

setOrderId()

public setOrderId(int|null $orderId) : $this
Parameters
$orderId : int|null
Return values
$this

setPaymentMethodId()

public setPaymentMethodId(int|null $paymentMethodId) : $this
Parameters
$paymentMethodId : int|null
Return values
$this

setPaymentMethods()

public setPaymentMethods(Collection<int, TPaymentMethod>|array<int, TPaymentMethod> $paymentMethods) : $this
Parameters
$paymentMethods : Collection<int, TPaymentMethod>|array<int, TPaymentMethod>
Return values
$this

setPaymentRegionId()

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

setPdfTemplateId()

public setPdfTemplateId(int|null $pdfTemplateId) : $this
Parameters
$pdfTemplateId : int|null
Return values
$this

setPdfTemplateVariantId()

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

setProductTypeId()

public setProductTypeId(int|null $productTypeId) : $this
Parameters
$productTypeId : int|null
Return values
$this

setRoundedTotalPrice()

public setRoundedTotalPrice(string|null $roundedTotalPrice) : $this
Parameters
$roundedTotalPrice : string|null
Return values
$this

setRoundedTotalPriceWithVat()

public setRoundedTotalPriceWithVat(string|null $roundedTotalPriceWithVat) : $this
Parameters
$roundedTotalPriceWithVat : string|null
Return values
$this

setRounding()

public setRounding(string|null $rounding) : $this
Parameters
$rounding : string|null
Return values
$this

setRoundingWithVat()

public setRoundingWithVat(string|null $roundingWithVat) : $this
Parameters
$roundingWithVat : string|null
Return values
$this

setSellerBankAccountId()

public setSellerBankAccountId(int|null $sellerBankAccountId) : $this
Parameters
$sellerBankAccountId : int|null
Return values
$this

setSellerCity()

public setSellerCity(string|null $sellerCity) : $this
Parameters
$sellerCity : string|null
Return values
$this

setSellerContactId()

public setSellerContactId(int|null $sellerContactId) : $this
Parameters
$sellerContactId : int|null
Return values
$this

setSellerCountry()

public setSellerCountry(string|null $sellerCountry) : $this
Parameters
$sellerCountry : string|null
Return values
$this

setSellerEmail()

public setSellerEmail(string|null $sellerEmail) : $this
Parameters
$sellerEmail : string|null
Return values
$this

setSellerId()

public setSellerId(int|null $sellerId) : $this
Parameters
$sellerId : int|null
Return values
$this

setSellerInformations()

public setSellerInformations(string|null $sellerInformations) : $this
Parameters
$sellerInformations : string|null
Return values
$this

setSellerName()

public setSellerName(string|null $sellerName) : $this
Parameters
$sellerName : string|null
Return values
$this

setSellerName2()

public setSellerName2(string|null $sellerName2) : $this
Parameters
$sellerName2 : string|null
Return values
$this

setSellerPhone()

public setSellerPhone(string|null $sellerPhone) : $this
Parameters
$sellerPhone : string|null
Return values
$this

setSellerPostcode()

public setSellerPostcode(string|null $sellerPostcode) : $this
Parameters
$sellerPostcode : string|null
Return values
$this

setSellerRegNo()

public setSellerRegNo(string|null $sellerRegNo) : $this
Parameters
$sellerRegNo : string|null
Return values
$this

setSellerStreet()

public setSellerStreet(string|null $sellerStreet) : $this
Parameters
$sellerStreet : string|null
Return values
$this

setSellerVatId()

public setSellerVatId(string|null $sellerVatId) : $this
Parameters
$sellerVatId : string|null
Return values
$this

setSellerVatInformations()

public setSellerVatInformations(string|null $sellerVatInformations) : $this
Parameters
$sellerVatInformations : string|null
Return values
$this

setSendEmail()

public setSendEmail(bool $sendEmail) : $this
Parameters
$sendEmail : bool
Return values
$this

setShippers()

public setShippers(Collection<int, TShipper>|array<int, TShipper> $shippers) : $this
Parameters
$shippers : Collection<int, TShipper>|array<int, TShipper>
Return values
$this

setSignature()

public setSignature(string|null $signature) : $this
Parameters
$signature : string|null
Return values
$this

setSpecificSymbol()

public setSpecificSymbol(string|null $specificSymbol) : $this
Parameters
$specificSymbol : string|null
Return values
$this

setSwift()

public setSwift(string|null $swift) : $this
Parameters
$swift : string|null
Return values
$this

setTotalPrice()

public setTotalPrice(string|null $totalPrice) : $this
Parameters
$totalPrice : string|null
Return values
$this

setTotalPriceWithVat()

public setTotalPriceWithVat(string|null $totalPriceWithVat) : $this
Parameters
$totalPriceWithVat : string|null
Return values
$this

setUseDeliveryAddress()

public setUseDeliveryAddress(bool $useDeliveryAddress) : $this
Parameters
$useDeliveryAddress : bool
Return values
$this

setUserTypeId()

public setUserTypeId(int|null $userTypeId) : $this
Parameters
$userTypeId : int|null
Return values
$this

setUseVat()

public setUseVat(bool $useVat) : $this
Parameters
$useVat : bool
Return values
$this

setVariableSymbol()

public setVariableSymbol(string|null $variableSymbol) : $this
Parameters
$variableSymbol : string|null
Return values
$this

setVouchers()

public setVouchers(Collection<int, TVoucher>|array<int, TVoucher> $vouchers) : $this
Parameters
$vouchers : Collection<int, TVoucher>|array<int, TVoucher>
Return values
$this

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