PHP 클래스 Sonata\InvoiceBundle\Entity\BaseInvoiceElement

상속: implements Sonata\Component\Invoice\InvoiceElementInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$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