PHP Interface Sonata\Component\Invoice\InvoiceElementInterface

Inheritance: extends Sonata\Component\Product\PriceComputableInterface
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
getDescription ( ) : string Get description.
getDesignation ( ) : string Get designation.
getInvoice ( ) : Sonata\Component\Invoice\InvoiceInterface Get invoice.
getOrderElement ( ) : Sonata\Component\Order\OrderElementInterface Get orderElement.
getTotal ( ) : float Get total.
getUnitPriceExcl ( ) : float Returns unit price excluding VAT.
getUnitPriceInc ( ) : float Returns unit price including VAT.
setDescription ( string $description ) Set description.
setDesignation ( string $designation ) Set designation.
setInvoice ( Sonata\Component\Invoice\InvoiceInterface $invoice ) Set invoiceId.
setOrderElement ( Sonata\Component\Order\OrderElementInterface $orderElement ) Set orderElement.
setTotal ( float $total ) Set total.
setUnitPriceExcl ( float $unitPriceExcl ) Sets unit price excluding VAT.
setUnitPriceInc ( float $unitPriceInc ) Sets unit price including VAT.

Method Details

getDescription() public method

Get description.
public getDescription ( ) : string
return string $description

getDesignation() public method

Get designation.
public getDesignation ( ) : string
return string $designation

getInvoice() public method

Get invoice.
public getInvoice ( ) : Sonata\Component\Invoice\InvoiceInterface
return Sonata\Component\Invoice\InvoiceInterface $invoice

getOrderElement() public method

Get orderElement.
public getOrderElement ( ) : Sonata\Component\Order\OrderElementInterface
return Sonata\Component\Order\OrderElementInterface $orderElement

getTotal() public method

Get total.
public getTotal ( ) : float
return float $total

getUnitPriceExcl() public method

Returns unit price excluding VAT.
public getUnitPriceExcl ( ) : float
return float

getUnitPriceInc() public method

Returns unit price including VAT.
public getUnitPriceInc ( ) : float
return float

setDescription() public method

Set description.
public setDescription ( string $description )
$description string

setDesignation() public method

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

setInvoice() public method

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

setOrderElement() public method

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

setTotal() public method

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

setUnitPriceExcl() public method

Sets unit price excluding VAT.
public setUnitPriceExcl ( float $unitPriceExcl )
$unitPriceExcl float

setUnitPriceInc() public method

Sets unit price including VAT.
public setUnitPriceInc ( float $unitPriceInc )
$unitPriceInc float