InvoiceTemplatePaymentMethod
extends InvoiceTemplatePaymentMethod
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_mod_invoicer_invoice_template_payment_methods'
- #[TableAlias]
- 'invoiceTemplatePaymentMethod'
Table of Contents
Properties
- $code : string|null
- $currencyId : int|null
- $description : string|null
- $discount : string|null
- $discountInMoney : string|null
- $id : int|null
- $invoiceTemplate : InvoiceTemplate|null
- $invoiceTemplateId : int|null
- $name : string|null
- $price : string
- $priceAfterDiscount : string|null
- $priceAfterDiscountWithVat : string|null
- $priceWithVat : string|null
- $quantity : int
- $totalPrice : string
- $totalPriceWithVat : string|null
- $unit : string|null
- $useDiscount : bool
- $useVat : bool
- $vat : numeric-string|null
- $vatInMoney : string|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.
- getCode() : string|null
- getCurrencyId() : int|null
- getDescription() : string|null
- getDiscount() : string|null
- getDiscountInMoney() : string|null
- getId() : int|null
- getInvoiceTemplate() : InvoiceTemplate|null
- getInvoiceTemplateId() : int|null
- getName() : string|null
- getPrice() : string
- getPriceAfterDiscount() : string|null
- getPriceAfterDiscountWithVat() : string|null
- getPriceWithVat() : string|null
- getQuantity() : int
- getTotalPrice() : string
- getTotalPriceWithVat() : string|null
- getUnit() : string|null
- getUseDiscount() : bool
- getUseVat() : bool
- getVat() : numeric-string|null
- getVatInMoney() : string|null
- isPersisted() : bool
- isUseDiscount() : bool
- isUseVat() : bool
- setCode() : $this
- setCurrencyId() : $this
- setDescription() : $this
- setDiscount() : $this
- setDiscountInMoney() : $this
- setId() : $this
- setInvoiceTemplate() : self
- setInvoiceTemplateId() : $this
- setName() : $this
- setPrice() : $this
- setPriceAfterDiscount() : $this
- setPriceAfterDiscountWithVat() : $this
- setPriceWithVat() : $this
- setQuantity() : $this
- setTotalPrice() : $this
- setTotalPriceWithVat() : $this
- setUnit() : $this
- setUseDiscount() : $this
- setUseVat() : $this
- setVat() : $this
- setVatInMoney() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$code
protected
string|null
$code
= null
Attributes
- #[Column]
- $name: 'code'
- $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]
$description
protected
string|null
$description
= null
Attributes
- #[Column]
- $name: 'description'
- $type: 'text'
- $nullable: true
$discount
protected
string|null
$discount
= null
Attributes
- #[Column]
- $name: 'discount'
- $type: 'decimal'
- $precision: 5
- $scale: 2
- $nullable: true
$discountInMoney
protected
string|null
$discountInMoney
= null
Attributes
- #[Column]
- $name: 'discount_in_money'
- $type: 'decimal'
- $precision: 10
- $scale: 3
- $nullable: true
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'invoice_template_payment_method_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$invoiceTemplate
protected
InvoiceTemplate|null
$invoiceTemplate
= null
Attributes
- #[JoinColumn]
- $name: 'cms_mod_invoicer_invoice_templates_invoice_template_id'
- $referencedColumnName: 'invoice_template_id'
- $onDelete: 'CASCADE'
- #[ManyToOne]
- $targetEntity: \App\UI\Api\Invoicer\Models\Entities\InvoiceTemplate::class
- $inversedBy: 'paymentMethods'
$invoiceTemplateId
protected
int|null
$invoiceTemplateId
= null
Attributes
- #[Column]
- $name: 'cms_mod_invoicer_invoice_templates_invoice_template_id'
- $type: 'integer'
- $insertable: false
- $updatable: false
- $nullable: true
- $options: ['unsigned' => true]
$name
protected
string|null
$name
= null
Attributes
- #[Column]
- $name: 'name'
- $type: 'string'
- $length: 255
- $nullable: true
$price
protected
string
$price
= '0.000'
Attributes
- #[Column]
- $name: 'price'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$priceAfterDiscount
protected
string|null
$priceAfterDiscount
= null
Attributes
- #[Column]
- $name: 'price_after_discount'
- $type: 'decimal'
- $precision: 10
- $scale: 3
- $nullable: true
$priceAfterDiscountWithVat
protected
string|null
$priceAfterDiscountWithVat
= null
Attributes
- #[Column]
- $name: 'price_after_discount_with_vat'
- $type: 'decimal'
- $precision: 10
- $scale: 3
- $nullable: true
$priceWithVat
protected
string|null
$priceWithVat
= null
Attributes
- #[Column]
- $name: 'price_with_vat'
- $type: 'decimal'
- $precision: 10
- $scale: 3
- $nullable: true
$quantity
protected
int
$quantity
= 1
Attributes
- #[Column]
- $name: 'quantity'
- $type: 'integer'
- $options: ['unsigned' => true]
$totalPrice
protected
string
$totalPrice
= '0.000'
Attributes
- #[Column]
- $name: 'total_price'
- $type: 'decimal'
- $precision: 10
- $scale: 3
$totalPriceWithVat
protected
string|null
$totalPriceWithVat
= null
Attributes
- #[Column]
- $name: 'total_price_with_vat'
- $type: 'decimal'
- $precision: 10
- $scale: 3
- $nullable: true
$unit
protected
string|null
$unit
= null
Attributes
- #[Column]
- $name: 'unit'
- $type: 'string'
- $length: 255
- $nullable: true
$useDiscount
protected
bool
$useDiscount
= false
Attributes
- #[Column]
- $name: 'use_discount'
- $type: 'boolean'
$useVat
protected
bool
$useVat
= false
Attributes
- #[Column]
- $name: 'use_vat'
- $type: 'boolean'
$vat
protected
numeric-string|null
$vat
= null
Attributes
- #[Column]
- $name: 'vat'
- $type: 'decimal'
- $precision: 5
- $scale: 2
- $nullable: true
$vatInMoney
protected
string|null
$vatInMoney
= null
Attributes
- #[Column]
- $name: 'vat_in_money'
- $type: 'decimal'
- $precision: 10
- $scale: 3
- $nullable: true
Methods
__construct()
public
__construct([int|null $id = null ][, int|null $invoiceTemplateId = null ][, int|null $currencyId = null ][, string|null $name = null ][, string|null $description = null ][, string $price = '0.000' ][, string|null $priceWithVat = null ][, string $totalPrice = '0.000' ][, string|null $totalPriceWithVat = null ][, bool $useVat = false ][, string|null $vat = null ][, int $quantity = 1 ][, string|null $unit = null ][, string|null $code = null ][, bool $useDiscount = false ][, string|null $discount = null ][, string|null $discountInMoney = null ][, string|null $priceAfterDiscount = null ][, string|null $priceAfterDiscountWithVat = null ][, string|null $vatInMoney = null ]) : mixed
Parameters
- $id : int|null = null
- $invoiceTemplateId : int|null = null
- $currencyId : int|null = null
- $name : string|null = null
- $description : string|null = null
- $price : string = '0.000'
- $priceWithVat : string|null = null
- $totalPrice : string = '0.000'
- $totalPriceWithVat : string|null = null
- $useVat : bool = false
- $vat : string|null = null
- $quantity : int = 1
- $unit : string|null = null
- $code : string|null = null
- $useDiscount : bool = false
- $discount : string|null = null
- $discountInMoney : string|null = null
- $priceAfterDiscount : string|null = null
- $priceAfterDiscountWithVat : string|null = null
- $vatInMoney : string|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>getCode()
public
getCode() : string|null
Return values
string|nullgetCurrencyId()
public
getCurrencyId() : int|null
Return values
int|nullgetDescription()
public
getDescription() : string|null
Return values
string|nullgetDiscount()
public
getDiscount() : string|null
Return values
string|nullgetDiscountInMoney()
public
getDiscountInMoney() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetInvoiceTemplate()
public
getInvoiceTemplate() : InvoiceTemplate|null
Return values
InvoiceTemplate|nullgetInvoiceTemplateId()
public
getInvoiceTemplateId() : int|null
Return values
int|nullgetName()
public
getName() : string|null
Return values
string|nullgetPrice()
public
getPrice() : string
Return values
stringgetPriceAfterDiscount()
public
getPriceAfterDiscount() : string|null
Return values
string|nullgetPriceAfterDiscountWithVat()
public
getPriceAfterDiscountWithVat() : string|null
Return values
string|nullgetPriceWithVat()
public
getPriceWithVat() : string|null
Return values
string|nullgetQuantity()
public
getQuantity() : int
Return values
intgetTotalPrice()
public
getTotalPrice() : string
Return values
stringgetTotalPriceWithVat()
public
getTotalPriceWithVat() : string|null
Return values
string|nullgetUnit()
public
getUnit() : string|null
Return values
string|nullgetUseDiscount()
public
getUseDiscount() : bool
Return values
boolgetUseVat()
public
getUseVat() : bool
Return values
boolgetVat()
public
getVat() : numeric-string|null
Return values
numeric-string|nullgetVatInMoney()
public
getVatInMoney() : string|null
Return values
string|nullisPersisted()
public
isPersisted() : bool
Return values
boolisUseDiscount()
public
isUseDiscount() : bool
Return values
boolisUseVat()
public
isUseVat() : bool
Return values
boolsetCode()
public
setCode(string|null $code) : $this
Parameters
- $code : string|null
Return values
$thissetCurrencyId()
public
setCurrencyId(int|null $currencyId) : $this
Parameters
- $currencyId : int|null
Return values
$thissetDescription()
public
setDescription(string|null $description) : $this
Parameters
- $description : string|null
Return values
$thissetDiscount()
public
setDiscount(string|null $discount) : $this
Parameters
- $discount : string|null
Return values
$thissetDiscountInMoney()
public
setDiscountInMoney(string|null $discountInMoney) : $this
Parameters
- $discountInMoney : string|null
Return values
$thissetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetInvoiceTemplate()
public
setInvoiceTemplate(InvoiceTemplate|null $invoiceTemplate) : self
Parameters
- $invoiceTemplate : InvoiceTemplate|null
Return values
selfsetInvoiceTemplateId()
public
setInvoiceTemplateId(int|null $invoiceTemplateId) : $this
Parameters
- $invoiceTemplateId : int|null
Return values
$thissetName()
public
setName(string|null $name) : $this
Parameters
- $name : string|null
Return values
$thissetPrice()
public
setPrice(string $price) : $this
Parameters
- $price : string
Return values
$thissetPriceAfterDiscount()
public
setPriceAfterDiscount(string|null $priceAfterDiscount) : $this
Parameters
- $priceAfterDiscount : string|null
Return values
$thissetPriceAfterDiscountWithVat()
public
setPriceAfterDiscountWithVat(string|null $priceAfterDiscountWithVat) : $this
Parameters
- $priceAfterDiscountWithVat : string|null
Return values
$thissetPriceWithVat()
public
setPriceWithVat(string|null $priceWithVat) : $this
Parameters
- $priceWithVat : string|null
Return values
$thissetQuantity()
public
setQuantity(int $quantity) : $this
Parameters
- $quantity : int
Return values
$thissetTotalPrice()
public
setTotalPrice(string $totalPrice) : $this
Parameters
- $totalPrice : string
Return values
$thissetTotalPriceWithVat()
public
setTotalPriceWithVat(string|null $totalPriceWithVat) : $this
Parameters
- $totalPriceWithVat : string|null
Return values
$thissetUnit()
public
setUnit(string|null $unit) : $this
Parameters
- $unit : string|null
Return values
$thissetUseDiscount()
public
setUseDiscount(bool $useDiscount) : $this
Parameters
- $useDiscount : bool
Return values
$thissetUseVat()
public
setUseVat(bool $useVat) : $this
Parameters
- $useVat : bool
Return values
$thissetVat()
public
setVat(int|float|string|null $vat) : $this
Parameters
- $vat : int|float|string|null
Return values
$thissetVatInMoney()
public
setVatInMoney(string|null $vatInMoney) : $this
Parameters
- $vatInMoney : string|null
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>