CoolCMS API

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

$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

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

setCurrencyId()

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

setDescription()

public setDescription(string|null $description) : $this
Parameters
$description : string|null
Return values
$this

setDiscount()

public setDiscount(string|null $discount) : $this
Parameters
$discount : string|null
Return values
$this

setDiscountInMoney()

public setDiscountInMoney(string|null $discountInMoney) : $this
Parameters
$discountInMoney : string|null
Return values
$this

setId()

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

setInvoiceTemplateId()

public setInvoiceTemplateId(int|null $invoiceTemplateId) : $this
Parameters
$invoiceTemplateId : int|null
Return values
$this

setPriceAfterDiscount()

public setPriceAfterDiscount(string|null $priceAfterDiscount) : $this
Parameters
$priceAfterDiscount : string|null
Return values
$this

setPriceAfterDiscountWithVat()

public setPriceAfterDiscountWithVat(string|null $priceAfterDiscountWithVat) : $this
Parameters
$priceAfterDiscountWithVat : string|null
Return values
$this

setPriceWithVat()

public setPriceWithVat(string|null $priceWithVat) : $this
Parameters
$priceWithVat : string|null
Return values
$this

setTotalPriceWithVat()

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

setVat()

public setVat(int|float|string|null $vat) : $this
Parameters
$vat : int|float|string|null
Return values
$this

setVatInMoney()

public setVatInMoney(string|null $vatInMoney) : $this
Parameters
$vatInMoney : string|null
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