PHP Класс Sonata\OrderBundle\Entity\BaseOrderElement

Наследование: implements Sonata\Component\Order\OrderElementInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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