PHP Class Sonata\InvoiceBundle\Entity\BaseInvoiceElement

Inheritance: implements Sonata\Component\Invoice\InvoiceElementInterface
Afficher le fichier Open project: sonata-project/ecommerce

Protected Properties

Свойство Type Description
$description string
$designation string
$invoice Sonata\Component\Invoice\InvoiceInterface
$orderElement OrderElement
$price float
$quantity integer
$total float
$unitPriceExcl float
$unitPriceInc float
$vatRate float

Méthodes publiques

Méthode Description
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 )

Method Details

getDescription() public méthode

Get description.
public getDescription ( ) : string
Résultat string $description

getDesignation() public méthode

Get designation.
public getDesignation ( ) : string
Résultat string $designation

getInvoice() public méthode

Get invoiceId.
public getInvoice ( ) : integer
Résultat integer $invoiceId

getOrderElement() public méthode

Get orderElement.
public getOrderElement ( ) : Sonata\Component\Order\OrderElementInterface
Résultat Sonata\Component\Order\OrderElementInterface $orderElement

getPrice() public méthode

public getPrice ( $vat = false )

getQuantity() public méthode

public getQuantity ( )

getTotal() public méthode

Get total.
public getTotal ( boolean $vat = true ) : float
$vat boolean
Résultat float $total

getUnitPrice() public méthode

public getUnitPrice ( $vat = false )

getUnitPriceExcl() public méthode

public getUnitPriceExcl ( )

getUnitPriceInc() public méthode

public getUnitPriceInc ( )

getVatAmount() public méthode

Returns VAT element amount.
public getVatAmount ( ) : float
Résultat float

getVatRate() public méthode

public getVatRate ( )

setDescription() public méthode

string $description
public setDescription ( $description )

setDesignation() public méthode

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

setInvoice() public méthode

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

setOrderElement() public méthode

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

setPrice() public méthode

public setPrice ( $price )

setQuantity() public méthode

public setQuantity ( $quantity )

setTotal() public méthode

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

setUnitPriceExcl() public méthode

public setUnitPriceExcl ( $unitPriceExcl )

setUnitPriceInc() public méthode

public setUnitPriceInc ( $unitPriceInc )

setVatRate() public méthode

public setVatRate ( $vatRate )

Property Details

$description protected_oe property

protected string $description
Résultat string

$designation protected_oe property

protected string $designation
Résultat string

$invoice protected_oe property

protected InvoiceInterface,Sonata\Component\Invoice $invoice
Résultat Sonata\Component\Invoice\InvoiceInterface

$orderElement protected_oe property

protected OrderElement $orderElement
Résultat OrderElement

$price protected_oe property

protected float $price
Résultat float

$quantity protected_oe property

protected int $quantity
Résultat integer

$total protected_oe property

protected float $total
Résultat float

$unitPriceExcl protected_oe property

protected float $unitPriceExcl
Résultat float

$unitPriceInc protected_oe property

protected float $unitPriceInc
Résultat float

$vatRate protected_oe property

protected float $vatRate
Résultat float