PHP Class Sonata\OrderBundle\Entity\BaseOrder

Inheritance: implements Sonata\Component\Order\OrderInterface
Show file Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$billingAddress1 string
$billingAddress2 string
$billingAddress3 string
$billingCity string
$billingCountryCode string
$billingEmail string
$billingFax string
$billingMobile string
$billingName string
$billingPhone string
$billingPostcode string
$createdAt
$currency Sonata\Component\Currency\CurrencyInterface
$customer
$deliveryCost float
$deliveryMethod string
$deliveryStatus integer
$deliveryVat float
$locale
$orderElements
$paymentMethod string
$paymentStatus integer
$reference string
$shippingAddress1 string
$shippingAddress2 string
$shippingAddress3 string
$shippingCity string
$shippingCountryCode string
$shippingEmail string
$shippingFax string
$shippingMobile string
$shippingName string
$shippingPhone string
$shippingPostcode string
$status integer
$totalExcl float
$totalInc float
$updatedAt
$username string
$validatedAt datetime

Public Methods

Method Description
__construct ( )
__toString ( )
addOrderElement ( Sonata\Component\Order\OrderElementInterface $orderElement )
addOrderElements ( Sonata\Component\Order\OrderElementInterface $orderElements )
getBillingAddress1 ( )
getBillingAddress2 ( )
getBillingAddress3 ( )
getBillingAsArray ( )
getBillingCity ( )
getBillingCountryCode ( )
getBillingEmail ( )
getBillingFax ( )
getBillingMobile ( )
getBillingName ( )
getBillingPhone ( )
getBillingPostcode ( )
getCreatedAt ( )
getCurrency ( )
getCustomer ( )
getDeliveryAsArray ( ) : array
getDeliveryCost ( )
getDeliveryMethod ( )
getDeliveryStatus ( )
getDeliveryStatusName ( ) : string
getDeliveryVat ( ) : float Get delivery VAT.
getFullBilling ( string $sep = ', ' ) : string Returns formatted billing address.
getFullDelivery ( string $sep = ', ' ) : string Returns formatted delivery address.
getLocale ( )
getOrderElements ( )
getPaymentMethod ( )
getPaymentStatus ( )
getPaymentStatusName ( ) : string
getReference ( )
getShippingAddress1 ( )
getShippingAddress2 ( )
getShippingAddress3 ( )
getShippingCity ( )
getShippingCountryCode ( )
getShippingEmail ( )
getShippingFax ( )
getShippingMobile ( )
getShippingName ( )
getShippingPhone ( )
getShippingPostcode ( )
getStatus ( )
getStatusList ( ) : array
getStatusName ( ) : string
getTotalExcl ( )
getTotalInc ( )
getUpdatedAt ( )
getUsername ( )
getValidatedAt ( )
getValidationStatusList ( ) : array
getVat ( )
getVatAmounts ( ) : array Returns all VAT amounts contained in elements.
isCancellable ( )
isCancelled ( )
isError ( )
isOpen ( )
isPending ( )
isValidated ( )
prePersist ( )
preUpdate ( )
setBillingAddress1 ( $billingAddress1 )
setBillingAddress2 ( $billingAddress2 )
setBillingAddress3 ( $billingAddress3 )
setBillingCity ( $billingCity )
setBillingCountryCode ( $billingCountryCode )
setBillingEmail ( $billingEmail )
setBillingFax ( $billingFax )
setBillingMobile ( $billingMobile )
setBillingName ( $billingName )
setBillingPhone ( $billingPhone )
setBillingPostcode ( $billingPostcode )
setCreatedAt ( DateTime $createdAt = null )
setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency )
setCustomer ( Sonata\Component\Customer\CustomerInterface $customer )
setDeliveryCost ( $deliveryCost )
setDeliveryMethod ( $deliveryMethod )
setDeliveryStatus ( $deliveryStatus )
setDeliveryVat ( float $deliveryVat ) Set delivery VAT.
setLocale ( $locale )
setOrderElements ( $orderElements )
setPaymentMethod ( $paymentMethod )
setPaymentStatus ( $paymentStatus )
setReference ( $reference )
setShippingAddress1 ( $shippingAddress1 )
setShippingAddress2 ( $shippingAddress2 )
setShippingAddress3 ( $shippingAddress3 )
setShippingCity ( $shippingCity )
setShippingCountryCode ( $shippingCountryCode )
setShippingEmail ( $shippingEmail )
setShippingFax ( $shippingFax )
setShippingMobile ( $shippingMobile )
setShippingName ( $shippingName )
setShippingPhone ( $shippingPhone )
setShippingPostcode ( $shippingPostcode )
setStatus ( $status )
setTotalExcl ( $totalExcl )
setTotalInc ( $totalInc )
setUpdatedAt ( DateTime $updatedAt = null )
setUsername ( $username )
setValidatedAt ( DateTime $validatedAt = null )

Method Details

__construct() public method

public __construct ( )

__toString() public method

public __toString ( )

addOrderElement() public method

public addOrderElement ( Sonata\Component\Order\OrderElementInterface $orderElement )
$orderElement Sonata\Component\Order\OrderElementInterface

addOrderElements() public method

public addOrderElements ( Sonata\Component\Order\OrderElementInterface $orderElements )
$orderElements Sonata\Component\Order\OrderElementInterface

getBillingAddress1() public method

public getBillingAddress1 ( )

getBillingAddress2() public method

public getBillingAddress2 ( )

getBillingAddress3() public method

public getBillingAddress3 ( )

getBillingAsArray() public method

public getBillingAsArray ( )

getBillingCity() public method

public getBillingCity ( )

getBillingCountryCode() public method

getBillingEmail() public method

public getBillingEmail ( )

getBillingFax() public method

public getBillingFax ( )

getBillingMobile() public method

public getBillingMobile ( )

getBillingName() public method

public getBillingName ( )

getBillingPhone() public method

public getBillingPhone ( )

getBillingPostcode() public method

public getBillingPostcode ( )

getCreatedAt() public method

public getCreatedAt ( )

getCurrency() public method

public getCurrency ( )

getCustomer() public method

public getCustomer ( )

getDeliveryAsArray() public method

public getDeliveryAsArray ( ) : array
return array

getDeliveryCost() public method

public getDeliveryCost ( )

getDeliveryMethod() public method

public getDeliveryMethod ( )

getDeliveryStatus() public method

public getDeliveryStatus ( )

getDeliveryStatusName() public method

public getDeliveryStatusName ( ) : string
return string

getDeliveryVat() public method

Get delivery VAT.
public getDeliveryVat ( ) : float
return float $deliveryVat

getFullBilling() public method

Returns formatted billing address.
public getFullBilling ( string $sep = ', ' ) : string
$sep string
return string

getFullDelivery() public method

Returns formatted delivery address.
public getFullDelivery ( string $sep = ', ' ) : string
$sep string
return string

getLocale() public method

public getLocale ( )

getOrderElements() public method

public getOrderElements ( )

getPaymentMethod() public method

public getPaymentMethod ( )

getPaymentStatus() public method

public getPaymentStatus ( )

getPaymentStatusName() public method

public getPaymentStatusName ( ) : string
return string

getReference() public method

public getReference ( )

getShippingAddress1() public method

public getShippingAddress1 ( )

getShippingAddress2() public method

public getShippingAddress2 ( )

getShippingAddress3() public method

public getShippingAddress3 ( )

getShippingCity() public method

public getShippingCity ( )

getShippingCountryCode() public method

getShippingEmail() public method

public getShippingEmail ( )

getShippingFax() public method

public getShippingFax ( )

getShippingMobile() public method

public getShippingMobile ( )

getShippingName() public method

public getShippingName ( )

getShippingPhone() public method

public getShippingPhone ( )

getShippingPostcode() public method

public getShippingPostcode ( )

getStatus() public method

public getStatus ( )

getStatusList() public static method

public static getStatusList ( ) : array
return array

getStatusName() public method

public getStatusName ( ) : string
return string

getTotalExcl() public method

public getTotalExcl ( )

getTotalInc() public method

public getTotalInc ( )

getUpdatedAt() public method

public getUpdatedAt ( )

getUsername() public method

public getUsername ( )

getValidatedAt() public method

public getValidatedAt ( )

getValidationStatusList() public static method

public static getValidationStatusList ( ) : array
return array

getVat() public method

public getVat ( )

getVatAmounts() public method

Returns all VAT amounts contained in elements.
public getVatAmounts ( ) : array
return array

isCancellable() public method

public isCancellable ( )

isCancelled() public method

public isCancelled ( )

isError() public method

public isError ( )

isOpen() public method

public isOpen ( )

isPending() public method

public isPending ( )

isValidated() public method

public isValidated ( )

prePersist() public method

public prePersist ( )

preUpdate() public method

public preUpdate ( )

setBillingAddress1() public method

public setBillingAddress1 ( $billingAddress1 )

setBillingAddress2() public method

public setBillingAddress2 ( $billingAddress2 )

setBillingAddress3() public method

public setBillingAddress3 ( $billingAddress3 )

setBillingCity() public method

public setBillingCity ( $billingCity )

setBillingCountryCode() public method

public setBillingCountryCode ( $billingCountryCode )

setBillingEmail() public method

public setBillingEmail ( $billingEmail )

setBillingFax() public method

public setBillingFax ( $billingFax )

setBillingMobile() public method

public setBillingMobile ( $billingMobile )

setBillingName() public method

public setBillingName ( $billingName )

setBillingPhone() public method

public setBillingPhone ( $billingPhone )

setBillingPostcode() public method

public setBillingPostcode ( $billingPostcode )

setCreatedAt() public method

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

setCurrency() public method

public setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency )
$currency Sonata\Component\Currency\CurrencyInterface

setCustomer() public method

public setCustomer ( Sonata\Component\Customer\CustomerInterface $customer )
$customer Sonata\Component\Customer\CustomerInterface

setDeliveryCost() public method

public setDeliveryCost ( $deliveryCost )

setDeliveryMethod() public method

public setDeliveryMethod ( $deliveryMethod )

setDeliveryStatus() public method

public setDeliveryStatus ( $deliveryStatus )

setDeliveryVat() public method

Set delivery VAT.
public setDeliveryVat ( float $deliveryVat )
$deliveryVat float

setLocale() public method

public setLocale ( $locale )

setOrderElements() public method

public setOrderElements ( $orderElements )

setPaymentMethod() public method

public setPaymentMethod ( $paymentMethod )

setPaymentStatus() public method

public setPaymentStatus ( $paymentStatus )

setReference() public method

public setReference ( $reference )

setShippingAddress1() public method

public setShippingAddress1 ( $shippingAddress1 )

setShippingAddress2() public method

public setShippingAddress2 ( $shippingAddress2 )

setShippingAddress3() public method

public setShippingAddress3 ( $shippingAddress3 )

setShippingCity() public method

public setShippingCity ( $shippingCity )

setShippingCountryCode() public method

public setShippingCountryCode ( $shippingCountryCode )

setShippingEmail() public method

public setShippingEmail ( $shippingEmail )

setShippingFax() public method

public setShippingFax ( $shippingFax )

setShippingMobile() public method

public setShippingMobile ( $shippingMobile )

setShippingName() public method

public setShippingName ( $shippingName )

setShippingPhone() public method

public setShippingPhone ( $shippingPhone )

setShippingPostcode() public method

public setShippingPostcode ( $shippingPostcode )

setStatus() public method

public setStatus ( $status )

setTotalExcl() public method

public setTotalExcl ( $totalExcl )

setTotalInc() public method

public setTotalInc ( $totalInc )

setUpdatedAt() public method

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

setUsername() public method

public setUsername ( $username )

setValidatedAt() public method

public setValidatedAt ( DateTime $validatedAt = null )
$validatedAt DateTime

Property Details

$billingAddress1 protected property

protected string $billingAddress1
return string

$billingAddress2 protected property

protected string $billingAddress2
return string

$billingAddress3 protected property

protected string $billingAddress3
return string

$billingCity protected property

protected string $billingCity
return string

$billingCountryCode protected property

protected string $billingCountryCode
return string

$billingEmail protected property

protected string $billingEmail
return string

$billingFax protected property

protected string $billingFax
return string

$billingMobile protected property

protected string $billingMobile
return string

$billingName protected property

protected string $billingName
return string

$billingPhone protected property

protected string $billingPhone
return string

$billingPostcode protected property

protected string $billingPostcode
return string

$createdAt protected property

protected $createdAt

$currency protected property

protected CurrencyInterface,Sonata\Component\Currency $currency
return Sonata\Component\Currency\CurrencyInterface

$customer protected property

protected $customer

$deliveryCost protected property

protected float $deliveryCost
return float

$deliveryMethod protected property

protected string $deliveryMethod
return string

$deliveryStatus protected property

protected int $deliveryStatus
return integer

$deliveryVat protected property

protected float $deliveryVat
return float

$locale protected property

protected $locale

$orderElements protected property

protected $orderElements

$paymentMethod protected property

protected string $paymentMethod
return string

$paymentStatus protected property

protected int $paymentStatus
return integer

$reference protected property

protected string $reference
return string

$shippingAddress1 protected property

protected string $shippingAddress1
return string

$shippingAddress2 protected property

protected string $shippingAddress2
return string

$shippingAddress3 protected property

protected string $shippingAddress3
return string

$shippingCity protected property

protected string $shippingCity
return string

$shippingCountryCode protected property

protected string $shippingCountryCode
return string

$shippingEmail protected property

protected string $shippingEmail
return string

$shippingFax protected property

protected string $shippingFax
return string

$shippingMobile protected property

protected string $shippingMobile
return string

$shippingName protected property

protected string $shippingName
return string

$shippingPhone protected property

protected string $shippingPhone
return string

$shippingPostcode protected property

protected string $shippingPostcode
return string

$status protected property

protected int $status
return integer

$totalExcl protected property

protected float $totalExcl
return float

$totalInc protected property

protected float $totalInc
return float

$updatedAt protected property

protected $updatedAt

$username protected property

protected string $username
return string

$validatedAt protected property

protected datetime $validatedAt
return datetime