PHP 클래스 Sonata\OrderBundle\Entity\BaseOrderElement

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

보호된 프로퍼티들

프로퍼티 타입 설명
$createdAt
$deliveryStatus integer
$description string
$designation string
$options array
$order integer
$price float
$product Sonata\Component\Product\ProductInterface
$productId integer
$productType string
$quantity integer
$rawProduct array
$status integer
$unitPriceExcl float
$unitPriceInc float
$updatedAt
$validatedAt DateTime
$vatRate float

공개 메소드들

메소드 설명
__construct ( )
__toString ( ) : string
getCreatedAt ( ) : DateTime
getDeliveryStatus ( ) : integer Get delivery_status.
getDeliveryStatusList ( ) : array
getDeliveryStatusName ( ) : string
getDescription ( ) : string Get description.
getDesignation ( ) : string Get designation.
getOption ( string $name, mixed $default = null ) : mixed
getOptions ( ) : array
getOrder ( ) : Order Get order.
getPrice ( $vat = false )
getProduct ( ) : Sonata\Component\Product\ProductInterface Get product.
getProductId ( ) : integer Get productId.
getProductType ( ) : string Get product_type.
getQuantity ( )
getRawProduct ( ) : array
getRawProductValue ( string $name, string $default = null ) : mixed
getStatus ( ) : integer Get status.
getStatusList ( ) : array
getStatusName ( ) : string
getTotal ( boolean $vat = false ) : float Return the total (price * quantity).
getTotalWithVat ( ) : float Returns the total with vat due to limitation of AdminBundle.
getUnitPrice ( $vat = false )
getUnitPriceExcl ( ) : float Returns unit price including VAT.
getUnitPriceInc ( ) : float Returns unit price including VAT.
getUpdatedAt ( ) : DateTime
getValidatedAt ( ) : DateTime Get validated_at.
getVatAmount ( ) : float Returns VAT element amount.
getVatRate ( )
hasOption ( string $name ) : boolean
isCancellable ( ) : boolean
isCancelled ( ) : boolean
isError ( ) : boolean Return true if the order has an error.
isOpen ( ) : boolean Return true if the order is open.
isPending ( ) : boolean
isValidated ( ) : boolean return true if the order is validated.
prePersist ( )
preUpdate ( )
setCreatedAt ( DateTime $createdAt = null )
setDeliveryStatus ( integer $deliveryStatus ) Set delivery_status.
setDescription ( string $description ) Set description.
setDesignation ( string $designation ) Set designation.
setOption ( string $name, mixed $value )
setOptions ( array $options )
setOrder ( Sonata\Component\Order\OrderInterface $order ) Set order.
setPrice ( $price )
setProduct ( Sonata\Component\Product\ProductInterface $product ) Add product.
setProductId ( integer $productId ) Set productId.
setProductType ( string $productType ) Set product_type.
setQuantity ( $quantity )
setRawProduct ( array $rawProduct )
setStatus ( integer $status ) Set status.
setUnitPriceExcl ( float $unitPriceExcl ) Sets unit price excluding VAT.
setUnitPriceInc ( float $unitPriceInc ) Sets unit price including VAT.
setUpdatedAt ( DateTime $updatedAt = null )
setValidatedAt ( DateTime $validatedAt = null ) Set validated_at.
setVatRate ( $vatRate )

메소드 상세

__construct() 공개 메소드

public __construct ( )

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

getCreatedAt() 공개 메소드

public getCreatedAt ( ) : DateTime
리턴 DateTime

getDeliveryStatus() 공개 메소드

Get delivery_status.
public getDeliveryStatus ( ) : integer
리턴 integer $deliveryStatus

getDeliveryStatusList() 공개 정적인 메소드

public static getDeliveryStatusList ( ) : array
리턴 array

getDeliveryStatusName() 공개 메소드

public getDeliveryStatusName ( ) : string
리턴 string

getDescription() 공개 메소드

Get description.
public getDescription ( ) : string
리턴 string $description

getDesignation() 공개 메소드

Get designation.
public getDesignation ( ) : string
리턴 string $designation

getOption() 공개 메소드

public getOption ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
리턴 mixed

getOptions() 공개 메소드

public getOptions ( ) : array
리턴 array

getOrder() 공개 메소드

Get order.
public getOrder ( ) : Order
리턴 Order $order

getPrice() 공개 메소드

public getPrice ( $vat = false )

getProduct() 공개 메소드

Get product.
public getProduct ( ) : Sonata\Component\Product\ProductInterface
리턴 Sonata\Component\Product\ProductInterface $product

getProductId() 공개 메소드

Get productId.
public getProductId ( ) : integer
리턴 integer $productId

getProductType() 공개 메소드

Get product_type.
public getProductType ( ) : string
리턴 string $productType

getQuantity() 공개 메소드

public getQuantity ( )

getRawProduct() 공개 메소드

public getRawProduct ( ) : array
리턴 array

getRawProductValue() 공개 메소드

public getRawProductValue ( string $name, string $default = null ) : mixed
$name string
$default string
리턴 mixed

getStatus() 공개 메소드

Get status.
public getStatus ( ) : integer
리턴 integer $status

getStatusList() 공개 정적인 메소드

public static getStatusList ( ) : array
리턴 array

getStatusName() 공개 메소드

public getStatusName ( ) : string
리턴 string

getTotal() 공개 메소드

if $vat = true, return the price with vat
public getTotal ( boolean $vat = false ) : float
$vat boolean
리턴 float

getTotalWithVat() 공개 메소드

Returns the total with vat due to limitation of AdminBundle.
public getTotalWithVat ( ) : float
리턴 float

getUnitPrice() 공개 메소드

public getUnitPrice ( $vat = false )

getUnitPriceExcl() 공개 메소드

Returns unit price including VAT.
public getUnitPriceExcl ( ) : float
리턴 float

getUnitPriceInc() 공개 메소드

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

getUpdatedAt() 공개 메소드

public getUpdatedAt ( ) : DateTime
리턴 DateTime

getValidatedAt() 공개 메소드

Get validated_at.
public getValidatedAt ( ) : DateTime
리턴 DateTime $validatedAt

getVatAmount() 공개 메소드

Returns VAT element amount.
public getVatAmount ( ) : float
리턴 float

getVatRate() 공개 메소드

public getVatRate ( )

hasOption() 공개 메소드

public hasOption ( string $name ) : boolean
$name string
리턴 boolean

isCancellable() 공개 메소드

public isCancellable ( ) : boolean
리턴 boolean

isCancelled() 공개 메소드

public isCancelled ( ) : boolean
리턴 boolean true if cancelled, else false

isError() 공개 메소드

Return true if the order has an error.
public isError ( ) : boolean
리턴 boolean

isOpen() 공개 메소드

Return true if the order is open.
public isOpen ( ) : boolean
리턴 boolean

isPending() 공개 메소드

public isPending ( ) : boolean
리턴 boolean true if pending, else false

isValidated() 공개 메소드

return true if the order is validated.
public isValidated ( ) : boolean
리턴 boolean

prePersist() 공개 메소드

public prePersist ( )

preUpdate() 공개 메소드

public preUpdate ( )

setCreatedAt() 공개 메소드

public setCreatedAt ( DateTime $createdAt = null )
$createdAt DateTime

setDeliveryStatus() 공개 메소드

Set delivery_status.
public setDeliveryStatus ( integer $deliveryStatus )
$deliveryStatus integer

setDescription() 공개 메소드

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

setDesignation() 공개 메소드

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

setOption() 공개 메소드

public setOption ( string $name, mixed $value )
$name string
$value mixed

setOptions() 공개 메소드

public setOptions ( array $options )
$options array

setOrder() 공개 메소드

Set order.
public setOrder ( Sonata\Component\Order\OrderInterface $order )
$order Sonata\Component\Order\OrderInterface

setPrice() 공개 메소드

public setPrice ( $price )

setProduct() 공개 메소드

Add product.
public setProduct ( Sonata\Component\Product\ProductInterface $product )
$product Sonata\Component\Product\ProductInterface

setProductId() 공개 메소드

Set productId.
public setProductId ( integer $productId )
$productId integer

setProductType() 공개 메소드

Set product_type.
public setProductType ( string $productType )
$productType string

setQuantity() 공개 메소드

public setQuantity ( $quantity )

setRawProduct() 공개 메소드

public setRawProduct ( array $rawProduct )
$rawProduct array

setStatus() 공개 메소드

Set status.
public setStatus ( integer $status )
$status integer

setUnitPriceExcl() 공개 메소드

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

setUnitPriceInc() 공개 메소드

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

setUpdatedAt() 공개 메소드

public setUpdatedAt ( DateTime $updatedAt = null )
$updatedAt DateTime

setValidatedAt() 공개 메소드

Set validated_at.
public setValidatedAt ( DateTime $validatedAt = null )
$validatedAt DateTime

setVatRate() 공개 메소드

public setVatRate ( $vatRate )

프로퍼티 상세

$createdAt 보호되어 있는 프로퍼티

protected $createdAt

$deliveryStatus 보호되어 있는 프로퍼티

protected int $deliveryStatus
리턴 integer

$description 보호되어 있는 프로퍼티

protected string $description
리턴 string

$designation 보호되어 있는 프로퍼티

protected string $designation
리턴 string

$options 보호되어 있는 프로퍼티

protected array $options
리턴 array

$order 보호되어 있는 프로퍼티

protected int $order
리턴 integer

$price 보호되어 있는 프로퍼티

protected float $price
리턴 float

$product 보호되어 있는 프로퍼티

protected ProductInterface,Sonata\Component\Product $product
리턴 Sonata\Component\Product\ProductInterface

$productId 보호되어 있는 프로퍼티

protected int $productId
리턴 integer

$productType 보호되어 있는 프로퍼티

protected string $productType
리턴 string

$quantity 보호되어 있는 프로퍼티

protected int $quantity
리턴 integer

$rawProduct 보호되어 있는 프로퍼티

protected array $rawProduct
리턴 array

$status 보호되어 있는 프로퍼티

protected int $status
리턴 integer

$unitPriceExcl 보호되어 있는 프로퍼티

protected float $unitPriceExcl
리턴 float

$unitPriceInc 보호되어 있는 프로퍼티

protected float $unitPriceInc
리턴 float

$updatedAt 보호되어 있는 프로퍼티

protected $updatedAt

$validatedAt 보호되어 있는 프로퍼티

protected DateTime $validatedAt
리턴 DateTime

$vatRate 보호되어 있는 프로퍼티

protected float $vatRate
리턴 float