PHP Interface Sonata\Component\Order\OrderElementInterface

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

Public Methods

Method Description
getCreatedAt ( ) : Datetime
getDeliveryStatus ( ) : integer Get delivery_status.
getDescription ( ) : string Get description.
getDesignation ( ) : string Get designation.
getOptions ( ) : string Get serialize.
getOrder ( ) : Sonata\Component\Order\OrderInterface Get order.
getProduct ( ) : Sonata\Component\Product\ProductInterface Get product.
getProductId ( ) : integer
getProductType ( ) : string Get product_type.
getRawProduct ( ) : string
getStatus ( ) : integer Get status.
getTotal ( boolean $vat = false ) : float Return the total (price * quantity).
getUpdatedAt ( ) : Datetime
getValidatedAt ( ) : Datetime Get validated_at.
setCreatedAt ( DateTime $createdAt = null )
setDeliveryStatus ( integer $deliveryStatus ) Set delivery_status.
setDescription ( string $description ) Set description.
setDesignation ( string $designation ) Set designation.
setOptions ( string $options ) Set serialize.
setOrder ( OrderInterface $order ) Set order.
setProduct ( Sonata\Component\Product\ProductInterface $product ) Add product.
setProductType ( string $productType ) Set product_type.
setRawProduct ( string $rawProduct )
setStatus ( integer $status ) Set status.
setUpdatedAt ( DateTime $updatedAt = null )
setValidatedAt ( DateTime $validatedAt = null ) Set validated_at.

Method Details

getCreatedAt() public method

public getCreatedAt ( ) : Datetime
return Datetime

getDeliveryStatus() public method

Get delivery_status.
public getDeliveryStatus ( ) : integer
return integer $deliveryStatus

getDescription() public method

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

getDesignation() public method

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

getOptions() public method

Get serialize.
public getOptions ( ) : string
return string $options

getOrder() public method

Get order.
public getOrder ( ) : Sonata\Component\Order\OrderInterface
return Sonata\Component\Order\OrderInterface

getProduct() public method

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

getProductId() public method

public getProductId ( ) : integer
return integer

getProductType() public method

Get product_type.
public getProductType ( ) : string
return string $productType

getRawProduct() public method

public getRawProduct ( ) : string
return string

getStatus() public method

Get status.
public getStatus ( ) : integer
return integer $status

getTotal() public method

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

getUpdatedAt() public method

public getUpdatedAt ( ) : Datetime
return Datetime

getValidatedAt() public method

Get validated_at.
public getValidatedAt ( ) : Datetime
return Datetime $validatedAt

setCreatedAt() public method

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

setDeliveryStatus() public method

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

setDescription() public method

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

setDesignation() public method

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

setOptions() public method

Set serialize.
public setOptions ( string $options )
$options string

setOrder() public method

Set order.
public setOrder ( OrderInterface $order )
$order OrderInterface

setProduct() public method

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

setProductType() public method

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

setRawProduct() public method

public setRawProduct ( string $rawProduct )
$rawProduct string

setStatus() public method

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

setUpdatedAt() public method

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

setValidatedAt() public method

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