Свойство | Тип | Описание | |
---|---|---|---|
$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 ) |
public getDescription ( ) : string | ||
Результат | string | $description |
public getDesignation ( ) : string | ||
Результат | string | $designation |
public getInvoice ( ) : integer | ||
Результат | integer | $invoiceId |
public getOrderElement ( ) : Sonata\Component\Order\OrderElementInterface | ||
Результат | Sonata\Component\Order\OrderElementInterface | $orderElement |
public getVatAmount ( ) : float | ||
Результат | float |
public setDesignation ( string $designation ) | ||
$designation | string |
public setInvoice ( Sonata\Component\Invoice\InvoiceInterface $invoice ) | ||
$invoice | Sonata\Component\Invoice\InvoiceInterface |
public setOrderElement ( Sonata\Component\Order\OrderElementInterface $orderElement ) | ||
$orderElement | Sonata\Component\Order\OrderElementInterface |
protected InvoiceInterface,Sonata\Component\Invoice $invoice | ||
Результат | Sonata\Component\Invoice\InvoiceInterface |