PHP Class Sonata\OrderBundle\Entity\BaseOrder

Inheritance: implements Sonata\Component\Order\OrderInterface
Afficher le fichier Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

public __construct ( )

__toString() public méthode

public __toString ( )

addOrderElement() public méthode

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

addOrderElements() public méthode

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

getBillingAddress1() public méthode

public getBillingAddress1 ( )

getBillingAddress2() public méthode

public getBillingAddress2 ( )

getBillingAddress3() public méthode

public getBillingAddress3 ( )

getBillingAsArray() public méthode

public getBillingAsArray ( )

getBillingCity() public méthode

public getBillingCity ( )

getBillingCountryCode() public méthode

getBillingEmail() public méthode

public getBillingEmail ( )

getBillingFax() public méthode

public getBillingFax ( )

getBillingMobile() public méthode

public getBillingMobile ( )

getBillingName() public méthode

public getBillingName ( )

getBillingPhone() public méthode

public getBillingPhone ( )

getBillingPostcode() public méthode

public getBillingPostcode ( )

getCreatedAt() public méthode

public getCreatedAt ( )

getCurrency() public méthode

public getCurrency ( )

getCustomer() public méthode

public getCustomer ( )

getDeliveryAsArray() public méthode

public getDeliveryAsArray ( ) : array
Résultat array

getDeliveryCost() public méthode

public getDeliveryCost ( )

getDeliveryMethod() public méthode

public getDeliveryMethod ( )

getDeliveryStatus() public méthode

public getDeliveryStatus ( )

getDeliveryStatusName() public méthode

public getDeliveryStatusName ( ) : string
Résultat string

getDeliveryVat() public méthode

Get delivery VAT.
public getDeliveryVat ( ) : float
Résultat float $deliveryVat

getFullBilling() public méthode

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

getFullDelivery() public méthode

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

getLocale() public méthode

public getLocale ( )

getOrderElements() public méthode

public getOrderElements ( )

getPaymentMethod() public méthode

public getPaymentMethod ( )

getPaymentStatus() public méthode

public getPaymentStatus ( )

getPaymentStatusName() public méthode

public getPaymentStatusName ( ) : string
Résultat string

getReference() public méthode

public getReference ( )

getShippingAddress1() public méthode

public getShippingAddress1 ( )

getShippingAddress2() public méthode

public getShippingAddress2 ( )

getShippingAddress3() public méthode

public getShippingAddress3 ( )

getShippingCity() public méthode

public getShippingCity ( )

getShippingCountryCode() public méthode

getShippingEmail() public méthode

public getShippingEmail ( )

getShippingFax() public méthode

public getShippingFax ( )

getShippingMobile() public méthode

public getShippingMobile ( )

getShippingName() public méthode

public getShippingName ( )

getShippingPhone() public méthode

public getShippingPhone ( )

getShippingPostcode() public méthode

public getShippingPostcode ( )

getStatus() public méthode

public getStatus ( )

getStatusList() public static méthode

public static getStatusList ( ) : array
Résultat array

getStatusName() public méthode

public getStatusName ( ) : string
Résultat string

getTotalExcl() public méthode

public getTotalExcl ( )

getTotalInc() public méthode

public getTotalInc ( )

getUpdatedAt() public méthode

public getUpdatedAt ( )

getUsername() public méthode

public getUsername ( )

getValidatedAt() public méthode

public getValidatedAt ( )

getValidationStatusList() public static méthode

public static getValidationStatusList ( ) : array
Résultat array

getVat() public méthode

public getVat ( )

getVatAmounts() public méthode

Returns all VAT amounts contained in elements.
public getVatAmounts ( ) : array
Résultat array

isCancellable() public méthode

public isCancellable ( )

isCancelled() public méthode

public isCancelled ( )

isError() public méthode

public isError ( )

isOpen() public méthode

public isOpen ( )

isPending() public méthode

public isPending ( )

isValidated() public méthode

public isValidated ( )

prePersist() public méthode

public prePersist ( )

preUpdate() public méthode

public preUpdate ( )

setBillingAddress1() public méthode

public setBillingAddress1 ( $billingAddress1 )

setBillingAddress2() public méthode

public setBillingAddress2 ( $billingAddress2 )

setBillingAddress3() public méthode

public setBillingAddress3 ( $billingAddress3 )

setBillingCity() public méthode

public setBillingCity ( $billingCity )

setBillingCountryCode() public méthode

public setBillingCountryCode ( $billingCountryCode )

setBillingEmail() public méthode

public setBillingEmail ( $billingEmail )

setBillingFax() public méthode

public setBillingFax ( $billingFax )

setBillingMobile() public méthode

public setBillingMobile ( $billingMobile )

setBillingName() public méthode

public setBillingName ( $billingName )

setBillingPhone() public méthode

public setBillingPhone ( $billingPhone )

setBillingPostcode() public méthode

public setBillingPostcode ( $billingPostcode )

setCreatedAt() public méthode

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

setCurrency() public méthode

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

setCustomer() public méthode

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

setDeliveryCost() public méthode

public setDeliveryCost ( $deliveryCost )

setDeliveryMethod() public méthode

public setDeliveryMethod ( $deliveryMethod )

setDeliveryStatus() public méthode

public setDeliveryStatus ( $deliveryStatus )

setDeliveryVat() public méthode

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

setLocale() public méthode

public setLocale ( $locale )

setOrderElements() public méthode

public setOrderElements ( $orderElements )

setPaymentMethod() public méthode

public setPaymentMethod ( $paymentMethod )

setPaymentStatus() public méthode

public setPaymentStatus ( $paymentStatus )

setReference() public méthode

public setReference ( $reference )

setShippingAddress1() public méthode

public setShippingAddress1 ( $shippingAddress1 )

setShippingAddress2() public méthode

public setShippingAddress2 ( $shippingAddress2 )

setShippingAddress3() public méthode

public setShippingAddress3 ( $shippingAddress3 )

setShippingCity() public méthode

public setShippingCity ( $shippingCity )

setShippingCountryCode() public méthode

public setShippingCountryCode ( $shippingCountryCode )

setShippingEmail() public méthode

public setShippingEmail ( $shippingEmail )

setShippingFax() public méthode

public setShippingFax ( $shippingFax )

setShippingMobile() public méthode

public setShippingMobile ( $shippingMobile )

setShippingName() public méthode

public setShippingName ( $shippingName )

setShippingPhone() public méthode

public setShippingPhone ( $shippingPhone )

setShippingPostcode() public méthode

public setShippingPostcode ( $shippingPostcode )

setStatus() public méthode

public setStatus ( $status )

setTotalExcl() public méthode

public setTotalExcl ( $totalExcl )

setTotalInc() public méthode

public setTotalInc ( $totalInc )

setUpdatedAt() public méthode

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

setUsername() public méthode

public setUsername ( $username )

setValidatedAt() public méthode

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

Property Details

$billingAddress1 protected_oe property

protected string $billingAddress1
Résultat string

$billingAddress2 protected_oe property

protected string $billingAddress2
Résultat string

$billingAddress3 protected_oe property

protected string $billingAddress3
Résultat string

$billingCity protected_oe property

protected string $billingCity
Résultat string

$billingCountryCode protected_oe property

protected string $billingCountryCode
Résultat string

$billingEmail protected_oe property

protected string $billingEmail
Résultat string

$billingFax protected_oe property

protected string $billingFax
Résultat string

$billingMobile protected_oe property

protected string $billingMobile
Résultat string

$billingName protected_oe property

protected string $billingName
Résultat string

$billingPhone protected_oe property

protected string $billingPhone
Résultat string

$billingPostcode protected_oe property

protected string $billingPostcode
Résultat string

$createdAt protected_oe property

protected $createdAt

$currency protected_oe property

protected CurrencyInterface,Sonata\Component\Currency $currency
Résultat Sonata\Component\Currency\CurrencyInterface

$customer protected_oe property

protected $customer

$deliveryCost protected_oe property

protected float $deliveryCost
Résultat float

$deliveryMethod protected_oe property

protected string $deliveryMethod
Résultat string

$deliveryStatus protected_oe property

protected int $deliveryStatus
Résultat integer

$deliveryVat protected_oe property

protected float $deliveryVat
Résultat float

$locale protected_oe property

protected $locale

$orderElements protected_oe property

protected $orderElements

$paymentMethod protected_oe property

protected string $paymentMethod
Résultat string

$paymentStatus protected_oe property

protected int $paymentStatus
Résultat integer

$reference protected_oe property

protected string $reference
Résultat string

$shippingAddress1 protected_oe property

protected string $shippingAddress1
Résultat string

$shippingAddress2 protected_oe property

protected string $shippingAddress2
Résultat string

$shippingAddress3 protected_oe property

protected string $shippingAddress3
Résultat string

$shippingCity protected_oe property

protected string $shippingCity
Résultat string

$shippingCountryCode protected_oe property

protected string $shippingCountryCode
Résultat string

$shippingEmail protected_oe property

protected string $shippingEmail
Résultat string

$shippingFax protected_oe property

protected string $shippingFax
Résultat string

$shippingMobile protected_oe property

protected string $shippingMobile
Résultat string

$shippingName protected_oe property

protected string $shippingName
Résultat string

$shippingPhone protected_oe property

protected string $shippingPhone
Résultat string

$shippingPostcode protected_oe property

protected string $shippingPostcode
Résultat string

$status protected_oe property

protected int $status
Résultat integer

$totalExcl protected_oe property

protected float $totalExcl
Résultat float

$totalInc protected_oe property

protected float $totalInc
Résultat float

$updatedAt protected_oe property

protected $updatedAt

$username protected_oe property

protected string $username
Résultat string

$validatedAt protected_oe property

protected datetime $validatedAt
Résultat datetime