Method |
Description |
|
__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 ) |
|
|