PHP Interface Sonata\Component\Order\OrderInterface

Afficher le fichier Open project: sonata-project/ecommerce Interface Usage Examples

Méthodes publiques

Méthode Description
addOrderElement ( Sonata\Component\Order\OrderElementInterface $orderElement )
addOrderElements ( Sonata\Component\Order\OrderElementInterface $orderElements ) Add order elements.
getBillingAddress1 ( ) : string Get billing address1.
getBillingAddress2 ( ) : string Get billing address2.
getBillingAddress3 ( ) : string Get billing address3.
getBillingCity ( ) : string Get billing city.
getBillingCountryCode ( ) : string Get billing country.
getBillingEmail ( ) : string Get billing email.
getBillingFax ( ) : string Get billing fax.
getBillingMobile ( ) : string Get billing mobile.
getBillingName ( ) : string Get billing name.
getBillingPhone ( ) : string Get billing phone.
getBillingPostcode ( ) : string Get billing postcode.
getCreatedAt ( ) : DateTime
getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface Get currency.
getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
getDeliveryCost ( ) : float Get delivery cost.
getDeliveryMethod ( ) : string Get delivery method.
getDeliveryStatus ( ) : integer Get delivery status.
getDeliveryVat ( ) : float Get delivery VAT.
getId ( ) : integer
getLocale ( ) : string
getOrderElements ( ) : array
getPaymentMethod ( ) : string Get payment method.
getPaymentStatus ( ) : integer Get payment status.
getReference ( ) : string Get reference.
getShippingAddress1 ( ) : string Get shipping address1.
getShippingAddress2 ( ) : string Get shipping address2.
getShippingAddress3 ( ) : string Get shipping address3.
getShippingCity ( ) : string Get shipping city.
getShippingCountryCode ( ) : string Get shipping country.
getShippingEmail ( ) : string Get shipping email.
getShippingFax ( ) : string Get shipping fax.
getShippingMobile ( ) : string Get shipping mobile.
getShippingName ( ) : string Get shipping name.
getShippingPhone ( ) : string Get shipping phone.
getShippingPostcode ( ) : string Get shipping postcode.
getStatus ( ) : integer Get status.
getTotalExcl ( ) : float Get totalExcl.
getTotalInc ( ) : float Get totalInc.
getUpdatedAt ( ) : DateTime
getUsername ( ) : string Get username.
getValidatedAt ( ) : Datetime Get validated at.
getVat ( ) : float
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.
setBillingAddress1 ( string $billingAddress1 ) Set billing address1.
setBillingAddress2 ( string $billingAddress2 ) Set billing address2.
setBillingAddress3 ( string $billingAddress3 ) Set billing address3.
setBillingCity ( string $billingCity ) Set billing city.
setBillingCountryCode ( string $billingCountryCode ) Set billing country code.
setBillingEmail ( string $billingEmail ) Set billing email.
setBillingFax ( string $billingFax ) Set billing fax.
setBillingMobile ( string $billingMobile ) Set billing mobile.
setBillingName ( string $billingName ) Set billing name.
setBillingPhone ( string $billingPhone ) Set billing phone.
setBillingPostcode ( string $billingPostcode ) Set billing postcode.
setCreatedAt ( DateTime $createdAt = null )
setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency ) Set currency.
setCustomer ( Sonata\Component\Customer\CustomerInterface $customer )
setDeliveryCost ( float $deliveryCost ) Set delivery cost (VAT included).
setDeliveryMethod ( string $deliveryMethod ) Set delivery method.
setDeliveryStatus ( integer $deliveryStatus ) Set delivery status.
setDeliveryVat ( float $deliveryVat ) Set delivery VAT.
setLocale ( string $locale )
setOrderElements ( array $orderElements ) : array
setPaymentMethod ( string $paymentMethod ) Set payment method.
setPaymentStatus ( integer $paymentStatus ) Set payment status.
setReference ( string $reference ) Set reference.
setShippingAddress1 ( string $shippingAddress1 ) Set shipping address1.
setShippingAddress2 ( string $shippingAddress2 ) Set shipping address2.
setShippingAddress3 ( string $shippingAddress3 ) Set shipping address3.
setShippingCity ( string $shippingCity ) Set shipping city.
setShippingCountryCode ( string $shippingCountryCode ) Set shipping country.
setShippingEmail ( string $shippingEmail ) Set shipping email.
setShippingFax ( string $shippingFax ) Set shipping fax.
setShippingMobile ( string $shippingMobile ) Set shipping mobile.
setShippingName ( string $shippingName ) Set shipping name.
setShippingPhone ( string $shippingPhone ) Set shipping phone.
setShippingPostcode ( string $shippingPostcode ) Set shipping postcode.
setStatus ( integer $status ) Set status.
setTotalExcl ( float $totalExcl ) Set totalExcl.
setTotalInc ( float $totalInc ) Set totalInc.
setUpdatedAt ( DateTime $updatedAt = null )
setUsername ( string $username ) Set username.
setValidatedAt ( DateTime $validatedAt = null ) Set validated at.

Method Details

addOrderElement() public méthode

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

addOrderElements() public méthode

Add order elements.
public addOrderElements ( Sonata\Component\Order\OrderElementInterface $orderElements )
$orderElements Sonata\Component\Order\OrderElementInterface

getBillingAddress1() public méthode

Get billing address1.
public getBillingAddress1 ( ) : string
Résultat string $billingAddress1

getBillingAddress2() public méthode

Get billing address2.
public getBillingAddress2 ( ) : string
Résultat string $billingAddress2

getBillingAddress3() public méthode

Get billing address3.
public getBillingAddress3 ( ) : string
Résultat string $billingAddress3

getBillingCity() public méthode

Get billing city.
public getBillingCity ( ) : string
Résultat string $billingCity

getBillingCountryCode() public méthode

Get billing country.
public getBillingCountryCode ( ) : string
Résultat string $billingCountryCode

getBillingEmail() public méthode

Get billing email.
public getBillingEmail ( ) : string
Résultat string $billingEmail

getBillingFax() public méthode

Get billing fax.
public getBillingFax ( ) : string
Résultat string $billingFax

getBillingMobile() public méthode

Get billing mobile.
public getBillingMobile ( ) : string
Résultat string $billingMobile

getBillingName() public méthode

Get billing name.
public getBillingName ( ) : string
Résultat string $billingName

getBillingPhone() public méthode

Get billing phone.
public getBillingPhone ( ) : string
Résultat string $billingPhone

getBillingPostcode() public méthode

Get billing postcode.
public getBillingPostcode ( ) : string
Résultat string $billingPostcode

getCreatedAt() public méthode

public getCreatedAt ( ) : DateTime
Résultat DateTime

getCurrency() public méthode

Get currency.
public getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface
Résultat Sonata\Component\Currency\CurrencyInterface $currency

getCustomer() public méthode

public getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
Résultat Sonata\Component\Customer\CustomerInterface

getDeliveryCost() public méthode

Get delivery cost.
public getDeliveryCost ( ) : float
Résultat float $deliveryCost

getDeliveryMethod() public méthode

Get delivery method.
public getDeliveryMethod ( ) : string
Résultat string $deliveryMethod

getDeliveryStatus() public méthode

Get delivery status.
public getDeliveryStatus ( ) : integer
Résultat integer $deliveryStatus

getDeliveryVat() public méthode

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

getId() public méthode

public getId ( ) : integer
Résultat integer the order id

getLocale() public méthode

public getLocale ( ) : string
Résultat string

getOrderElements() public méthode

public getOrderElements ( ) : array
Résultat array

getPaymentMethod() public méthode

Get payment method.
public getPaymentMethod ( ) : string
Résultat string

getPaymentStatus() public méthode

Get payment status.
public getPaymentStatus ( ) : integer
Résultat integer $paymentStatus

getReference() public méthode

Get reference.
public getReference ( ) : string
Résultat string $reference

getShippingAddress1() public méthode

Get shipping address1.
public getShippingAddress1 ( ) : string
Résultat string $shippingAddress1

getShippingAddress2() public méthode

Get shipping address2.
public getShippingAddress2 ( ) : string
Résultat string $shippingAddress2

getShippingAddress3() public méthode

Get shipping address3.
public getShippingAddress3 ( ) : string
Résultat string $shippingAddress3

getShippingCity() public méthode

Get shipping city.
public getShippingCity ( ) : string
Résultat string $shippingCity

getShippingCountryCode() public méthode

Get shipping country.
public getShippingCountryCode ( ) : string
Résultat string $shippingCountry

getShippingEmail() public méthode

Get shipping email.
public getShippingEmail ( ) : string
Résultat string $shippingEmail

getShippingFax() public méthode

Get shipping fax.
public getShippingFax ( ) : string
Résultat string $shippingFax

getShippingMobile() public méthode

Get shipping mobile.
public getShippingMobile ( ) : string
Résultat string $shippingMobile

getShippingName() public méthode

Get shipping name.
public getShippingName ( ) : string
Résultat string $shippingName

getShippingPhone() public méthode

Get shipping phone.
public getShippingPhone ( ) : string
Résultat string $shippingPhone

getShippingPostcode() public méthode

Get shipping postcode.
public getShippingPostcode ( ) : string
Résultat string $shippingPostcode

getStatus() public méthode

Get status.
public getStatus ( ) : integer
Résultat integer $status

getTotalExcl() public méthode

Get totalExcl.
public getTotalExcl ( ) : float
Résultat float $totalExcl

getTotalInc() public méthode

Get totalInc.
public getTotalInc ( ) : float
Résultat float $totalInc

getUpdatedAt() public méthode

public getUpdatedAt ( ) : DateTime
Résultat DateTime

getUsername() public méthode

Get username.
public getUsername ( ) : string
Résultat string $username

getValidatedAt() public méthode

Get validated at.
public getValidatedAt ( ) : Datetime
Résultat Datetime $validatedAt

getVat() public méthode

public getVat ( ) : float
Résultat float

isCancellable() public méthode

public isCancellable ( ) : boolean
Résultat boolean true if the order can be cancelled

isCancelled() public méthode

public isCancelled ( ) : boolean
Résultat boolean true if cancelled, else false

isError() public méthode

Return true if the order has an error.
public isError ( ) : boolean
Résultat boolean

isOpen() public méthode

Return true if the order is open.
public isOpen ( ) : boolean
Résultat boolean

isPending() public méthode

public isPending ( ) : boolean
Résultat boolean true if pending, else false

isValidated() public méthode

return true if the order is validated.
public isValidated ( ) : boolean
Résultat boolean

setBillingAddress1() public méthode

Set billing address1.
public setBillingAddress1 ( string $billingAddress1 )
$billingAddress1 string

setBillingAddress2() public méthode

Set billing address2.
public setBillingAddress2 ( string $billingAddress2 )
$billingAddress2 string

setBillingAddress3() public méthode

Set billing address3.
public setBillingAddress3 ( string $billingAddress3 )
$billingAddress3 string

setBillingCity() public méthode

Set billing city.
public setBillingCity ( string $billingCity )
$billingCity string

setBillingCountryCode() public méthode

Set billing country code.
public setBillingCountryCode ( string $billingCountryCode )
$billingCountryCode string

setBillingEmail() public méthode

Set billing email.
public setBillingEmail ( string $billingEmail )
$billingEmail string

setBillingFax() public méthode

Set billing fax.
public setBillingFax ( string $billingFax )
$billingFax string

setBillingMobile() public méthode

Set billing mobile.
public setBillingMobile ( string $billingMobile )
$billingMobile string

setBillingName() public méthode

Set billing name.
public setBillingName ( string $billingName )
$billingName string

setBillingPhone() public méthode

Set billing phone.
public setBillingPhone ( string $billingPhone )
$billingPhone string

setBillingPostcode() public méthode

Set billing postcode.
public setBillingPostcode ( string $billingPostcode )
$billingPostcode string

setCreatedAt() public méthode

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

setCurrency() public méthode

Set currency.
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

Set delivery cost (VAT included).
public setDeliveryCost ( float $deliveryCost )
$deliveryCost float

setDeliveryMethod() public méthode

Set delivery method.
public setDeliveryMethod ( string $deliveryMethod )
$deliveryMethod string

setDeliveryStatus() public méthode

Set delivery status.
public setDeliveryStatus ( integer $deliveryStatus )
$deliveryStatus integer

setDeliveryVat() public méthode

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

setLocale() public méthode

public setLocale ( string $locale )
$locale string

setOrderElements() public méthode

public setOrderElements ( array $orderElements ) : array
$orderElements array
Résultat array

setPaymentMethod() public méthode

Set payment method.
public setPaymentMethod ( string $paymentMethod )
$paymentMethod string

setPaymentStatus() public méthode

Set payment status.
public setPaymentStatus ( integer $paymentStatus )
$paymentStatus integer

setReference() public méthode

Set reference.
public setReference ( string $reference )
$reference string

setShippingAddress1() public méthode

Set shipping address1.
public setShippingAddress1 ( string $shippingAddress1 )
$shippingAddress1 string

setShippingAddress2() public méthode

Set shipping address2.
public setShippingAddress2 ( string $shippingAddress2 )
$shippingAddress2 string

setShippingAddress3() public méthode

Set shipping address3.
public setShippingAddress3 ( string $shippingAddress3 )
$shippingAddress3 string

setShippingCity() public méthode

Set shipping city.
public setShippingCity ( string $shippingCity )
$shippingCity string

setShippingCountryCode() public méthode

Set shipping country.
public setShippingCountryCode ( string $shippingCountryCode )
$shippingCountryCode string

setShippingEmail() public méthode

Set shipping email.
public setShippingEmail ( string $shippingEmail )
$shippingEmail string

setShippingFax() public méthode

Set shipping fax.
public setShippingFax ( string $shippingFax )
$shippingFax string

setShippingMobile() public méthode

Set shipping mobile.
public setShippingMobile ( string $shippingMobile )
$shippingMobile string

setShippingName() public méthode

Set shipping name.
public setShippingName ( string $shippingName )
$shippingName string

setShippingPhone() public méthode

Set shipping phone.
public setShippingPhone ( string $shippingPhone )
$shippingPhone string

setShippingPostcode() public méthode

Set shipping postcode.
public setShippingPostcode ( string $shippingPostcode )
$shippingPostcode string

setStatus() public méthode

Set status.
public setStatus ( integer $status )
$status integer

setTotalExcl() public méthode

Set totalExcl.
public setTotalExcl ( float $totalExcl )
$totalExcl float

setTotalInc() public méthode

Set totalInc.
public setTotalInc ( float $totalInc )
$totalInc float

setUpdatedAt() public méthode

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

setUsername() public méthode

Set username.
public setUsername ( string $username )
$username string

setValidatedAt() public méthode

Set validated at.
public setValidatedAt ( DateTime $validatedAt = null )
$validatedAt DateTime