Свойство | Тип | Описание | |
---|---|---|---|
$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 ) |
public getDeliveryStatus ( ) : integer | ||
Результат | integer | $deliveryStatus |
public static getDeliveryStatusList ( ) : array | ||
Результат | array |
public getDescription ( ) : string | ||
Результат | string | $description |
public getDesignation ( ) : string | ||
Результат | string | $designation |
public getProduct ( ) : Sonata\Component\Product\ProductInterface | ||
Результат | Sonata\Component\Product\ProductInterface | $product |
public getProductId ( ) : integer | ||
Результат | integer | $productId |
public getProductType ( ) : string | ||
Результат | string | $productType |
public getTotalWithVat ( ) : float | ||
Результат | float |
public getUnitPriceExcl ( ) : float | ||
Результат | float |
public getUnitPriceInc ( ) : float | ||
Результат | float |
public getValidatedAt ( ) : DateTime | ||
Результат | DateTime | $validatedAt |
public getVatAmount ( ) : float | ||
Результат | float |
public isCancelled ( ) : boolean | ||
Результат | boolean | true if cancelled, else false |
public isValidated ( ) : boolean | ||
Результат | boolean |
public setCreatedAt ( DateTime $createdAt = null ) | ||
$createdAt | DateTime |
public setDeliveryStatus ( integer $deliveryStatus ) | ||
$deliveryStatus | integer |
public setDescription ( string $description ) | ||
$description | string |
public setDesignation ( string $designation ) | ||
$designation | string |
public setOrder ( Sonata\Component\Order\OrderInterface $order ) | ||
$order | Sonata\Component\Order\OrderInterface |
public setProduct ( Sonata\Component\Product\ProductInterface $product ) | ||
$product | Sonata\Component\Product\ProductInterface |
public setProductId ( integer $productId ) | ||
$productId | integer |
public setProductType ( string $productType ) | ||
$productType | string |
public setUnitPriceExcl ( float $unitPriceExcl ) | ||
$unitPriceExcl | float |
public setUnitPriceInc ( float $unitPriceInc ) | ||
$unitPriceInc | float |
public setUpdatedAt ( DateTime $updatedAt = null ) | ||
$updatedAt | DateTime |
public setValidatedAt ( DateTime $validatedAt = null ) | ||
$validatedAt | DateTime |
protected ProductInterface,Sonata\Component\Product $product | ||
Результат | Sonata\Component\Product\ProductInterface |