PHP Класс Sonata\InvoiceBundle\Entity\BaseInvoiceElement

Наследование: implements Sonata\Component\Invoice\InvoiceElementInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$description string
$designation string
$invoice Sonata\Component\Invoice\InvoiceInterface
$orderElement OrderElement
$price float
$quantity integer
$total float
$unitPriceExcl float
$unitPriceInc float
$vatRate float

Открытые методы

Метод Описание
getDescription ( ) : string Get description.
getDesignation ( ) : string Get designation.
getInvoice ( ) : integer Get invoiceId.
getOrderElement ( ) : Sonata\Component\Order\OrderElementInterface Get orderElement.
getPrice ( $vat = false )
getQuantity ( )
getTotal ( boolean $vat = true ) : float Get total.
getUnitPrice ( $vat = false )
getUnitPriceExcl ( )
getUnitPriceInc ( )
getVatAmount ( ) : float Returns VAT element amount.
getVatRate ( )
setDescription ( $description ) Set description.
setDesignation ( string $designation ) Set designation.
setInvoice ( Sonata\Component\Invoice\InvoiceInterface $invoice ) Set invoiceId.
setOrderElement ( Sonata\Component\Order\OrderElementInterface $orderElement ) Set orderElement.
setPrice ( $price )
setQuantity ( $quantity )
setTotal ( float $total ) Set total.
setUnitPriceExcl ( $unitPriceExcl )
setUnitPriceInc ( $unitPriceInc )
setVatRate ( $vatRate )

Описание методов

getDescription() публичный Метод

Get description.
public getDescription ( ) : string
Результат string $description

getDesignation() публичный Метод

Get designation.
public getDesignation ( ) : string
Результат string $designation

getInvoice() публичный Метод

Get invoiceId.
public getInvoice ( ) : integer
Результат integer $invoiceId

getOrderElement() публичный Метод

Get orderElement.
public getOrderElement ( ) : Sonata\Component\Order\OrderElementInterface
Результат Sonata\Component\Order\OrderElementInterface $orderElement

getPrice() публичный Метод

public getPrice ( $vat = false )

getQuantity() публичный Метод

public getQuantity ( )

getTotal() публичный Метод

Get total.
public getTotal ( boolean $vat = true ) : float
$vat boolean
Результат float $total

getUnitPrice() публичный Метод

public getUnitPrice ( $vat = false )

getUnitPriceExcl() публичный Метод

public getUnitPriceExcl ( )

getUnitPriceInc() публичный Метод

public getUnitPriceInc ( )

getVatAmount() публичный Метод

Returns VAT element amount.
public getVatAmount ( ) : float
Результат float

getVatRate() публичный Метод

public getVatRate ( )

setDescription() публичный Метод

string $description
public setDescription ( $description )

setDesignation() публичный Метод

Set designation.
public setDesignation ( string $designation )
$designation string

setInvoice() публичный Метод

Set invoiceId.
public setInvoice ( Sonata\Component\Invoice\InvoiceInterface $invoice )
$invoice Sonata\Component\Invoice\InvoiceInterface

setOrderElement() публичный Метод

Set orderElement.
public setOrderElement ( Sonata\Component\Order\OrderElementInterface $orderElement )
$orderElement Sonata\Component\Order\OrderElementInterface

setPrice() публичный Метод

public setPrice ( $price )

setQuantity() публичный Метод

public setQuantity ( $quantity )

setTotal() публичный Метод

Set total.
public setTotal ( float $total )
$total float

setUnitPriceExcl() публичный Метод

public setUnitPriceExcl ( $unitPriceExcl )

setUnitPriceInc() публичный Метод

public setUnitPriceInc ( $unitPriceInc )

setVatRate() публичный Метод

public setVatRate ( $vatRate )

Описание свойств

$description защищенное свойство

protected string $description
Результат string

$designation защищенное свойство

protected string $designation
Результат string

$invoice защищенное свойство

protected InvoiceInterface,Sonata\Component\Invoice $invoice
Результат Sonata\Component\Invoice\InvoiceInterface

$orderElement защищенное свойство

protected OrderElement $orderElement
Результат OrderElement

$price защищенное свойство

protected float $price
Результат float

$quantity защищенное свойство

protected int $quantity
Результат integer

$total защищенное свойство

protected float $total
Результат float

$unitPriceExcl защищенное свойство

protected float $unitPriceExcl
Результат float

$unitPriceInc защищенное свойство

protected float $unitPriceInc
Результат float

$vatRate защищенное свойство

protected float $vatRate
Результат float