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

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

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

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

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный метод

public __construct ( )

__toString() публичный метод

public __toString ( )

addOrderElement() публичный метод

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

addOrderElements() публичный метод

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

getBillingAddress1() публичный метод

public getBillingAddress1 ( )

getBillingAddress2() публичный метод

public getBillingAddress2 ( )

getBillingAddress3() публичный метод

public getBillingAddress3 ( )

getBillingAsArray() публичный метод

public getBillingAsArray ( )

getBillingCity() публичный метод

public getBillingCity ( )

getBillingCountryCode() публичный метод

getBillingEmail() публичный метод

public getBillingEmail ( )

getBillingFax() публичный метод

public getBillingFax ( )

getBillingMobile() публичный метод

public getBillingMobile ( )

getBillingName() публичный метод

public getBillingName ( )

getBillingPhone() публичный метод

public getBillingPhone ( )

getBillingPostcode() публичный метод

public getBillingPostcode ( )

getCreatedAt() публичный метод

public getCreatedAt ( )

getCurrency() публичный метод

public getCurrency ( )

getCustomer() публичный метод

public getCustomer ( )

getDeliveryAsArray() публичный метод

public getDeliveryAsArray ( ) : array
Результат array

getDeliveryCost() публичный метод

public getDeliveryCost ( )

getDeliveryMethod() публичный метод

public getDeliveryMethod ( )

getDeliveryStatus() публичный метод

public getDeliveryStatus ( )

getDeliveryStatusName() публичный метод

public getDeliveryStatusName ( ) : string
Результат string

getDeliveryVat() публичный метод

Get delivery VAT.
public getDeliveryVat ( ) : float
Результат float $deliveryVat

getFullBilling() публичный метод

Returns formatted billing address.
public getFullBilling ( string $sep = ', ' ) : string
$sep string
Результат string

getFullDelivery() публичный метод

Returns formatted delivery address.
public getFullDelivery ( string $sep = ', ' ) : string
$sep string
Результат string

getLocale() публичный метод

public getLocale ( )

getOrderElements() публичный метод

public getOrderElements ( )

getPaymentMethod() публичный метод

public getPaymentMethod ( )

getPaymentStatus() публичный метод

public getPaymentStatus ( )

getPaymentStatusName() публичный метод

public getPaymentStatusName ( ) : string
Результат string

getReference() публичный метод

public getReference ( )

getShippingAddress1() публичный метод

public getShippingAddress1 ( )

getShippingAddress2() публичный метод

public getShippingAddress2 ( )

getShippingAddress3() публичный метод

public getShippingAddress3 ( )

getShippingCity() публичный метод

public getShippingCity ( )

getShippingCountryCode() публичный метод

getShippingEmail() публичный метод

public getShippingEmail ( )

getShippingFax() публичный метод

public getShippingFax ( )

getShippingMobile() публичный метод

public getShippingMobile ( )

getShippingName() публичный метод

public getShippingName ( )

getShippingPhone() публичный метод

public getShippingPhone ( )

getShippingPostcode() публичный метод

public getShippingPostcode ( )

getStatus() публичный метод

public getStatus ( )

getStatusList() публичный статический метод

public static getStatusList ( ) : array
Результат array

getStatusName() публичный метод

public getStatusName ( ) : string
Результат string

getTotalExcl() публичный метод

public getTotalExcl ( )

getTotalInc() публичный метод

public getTotalInc ( )

getUpdatedAt() публичный метод

public getUpdatedAt ( )

getUsername() публичный метод

public getUsername ( )

getValidatedAt() публичный метод

public getValidatedAt ( )

getValidationStatusList() публичный статический метод

public static getValidationStatusList ( ) : array
Результат array

getVat() публичный метод

public getVat ( )

getVatAmounts() публичный метод

Returns all VAT amounts contained in elements.
public getVatAmounts ( ) : array
Результат array

isCancellable() публичный метод

public isCancellable ( )

isCancelled() публичный метод

public isCancelled ( )

isError() публичный метод

public isError ( )

isOpen() публичный метод

public isOpen ( )

isPending() публичный метод

public isPending ( )

isValidated() публичный метод

public isValidated ( )

prePersist() публичный метод

public prePersist ( )

preUpdate() публичный метод

public preUpdate ( )

setBillingAddress1() публичный метод

public setBillingAddress1 ( $billingAddress1 )

setBillingAddress2() публичный метод

public setBillingAddress2 ( $billingAddress2 )

setBillingAddress3() публичный метод

public setBillingAddress3 ( $billingAddress3 )

setBillingCity() публичный метод

public setBillingCity ( $billingCity )

setBillingCountryCode() публичный метод

public setBillingCountryCode ( $billingCountryCode )

setBillingEmail() публичный метод

public setBillingEmail ( $billingEmail )

setBillingFax() публичный метод

public setBillingFax ( $billingFax )

setBillingMobile() публичный метод

public setBillingMobile ( $billingMobile )

setBillingName() публичный метод

public setBillingName ( $billingName )

setBillingPhone() публичный метод

public setBillingPhone ( $billingPhone )

setBillingPostcode() публичный метод

public setBillingPostcode ( $billingPostcode )

setCreatedAt() публичный метод

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

setCurrency() публичный метод

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

setCustomer() публичный метод

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

setDeliveryCost() публичный метод

public setDeliveryCost ( $deliveryCost )

setDeliveryMethod() публичный метод

public setDeliveryMethod ( $deliveryMethod )

setDeliveryStatus() публичный метод

public setDeliveryStatus ( $deliveryStatus )

setDeliveryVat() публичный метод

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

setLocale() публичный метод

public setLocale ( $locale )

setOrderElements() публичный метод

public setOrderElements ( $orderElements )

setPaymentMethod() публичный метод

public setPaymentMethod ( $paymentMethod )

setPaymentStatus() публичный метод

public setPaymentStatus ( $paymentStatus )

setReference() публичный метод

public setReference ( $reference )

setShippingAddress1() публичный метод

public setShippingAddress1 ( $shippingAddress1 )

setShippingAddress2() публичный метод

public setShippingAddress2 ( $shippingAddress2 )

setShippingAddress3() публичный метод

public setShippingAddress3 ( $shippingAddress3 )

setShippingCity() публичный метод

public setShippingCity ( $shippingCity )

setShippingCountryCode() публичный метод

public setShippingCountryCode ( $shippingCountryCode )

setShippingEmail() публичный метод

public setShippingEmail ( $shippingEmail )

setShippingFax() публичный метод

public setShippingFax ( $shippingFax )

setShippingMobile() публичный метод

public setShippingMobile ( $shippingMobile )

setShippingName() публичный метод

public setShippingName ( $shippingName )

setShippingPhone() публичный метод

public setShippingPhone ( $shippingPhone )

setShippingPostcode() публичный метод

public setShippingPostcode ( $shippingPostcode )

setStatus() публичный метод

public setStatus ( $status )

setTotalExcl() публичный метод

public setTotalExcl ( $totalExcl )

setTotalInc() публичный метод

public setTotalInc ( $totalInc )

setUpdatedAt() публичный метод

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

setUsername() публичный метод

public setUsername ( $username )

setValidatedAt() публичный метод

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

Описание свойств

$billingAddress1 защищенное свойство

protected string $billingAddress1
Результат string

$billingAddress2 защищенное свойство

protected string $billingAddress2
Результат string

$billingAddress3 защищенное свойство

protected string $billingAddress3
Результат string

$billingCity защищенное свойство

protected string $billingCity
Результат string

$billingCountryCode защищенное свойство

protected string $billingCountryCode
Результат string

$billingEmail защищенное свойство

protected string $billingEmail
Результат string

$billingFax защищенное свойство

protected string $billingFax
Результат string

$billingMobile защищенное свойство

protected string $billingMobile
Результат string

$billingName защищенное свойство

protected string $billingName
Результат string

$billingPhone защищенное свойство

protected string $billingPhone
Результат string

$billingPostcode защищенное свойство

protected string $billingPostcode
Результат string

$createdAt защищенное свойство

protected $createdAt

$currency защищенное свойство

protected CurrencyInterface,Sonata\Component\Currency $currency
Результат Sonata\Component\Currency\CurrencyInterface

$customer защищенное свойство

protected $customer

$deliveryCost защищенное свойство

protected float $deliveryCost
Результат float

$deliveryMethod защищенное свойство

protected string $deliveryMethod
Результат string

$deliveryStatus защищенное свойство

protected int $deliveryStatus
Результат integer

$deliveryVat защищенное свойство

protected float $deliveryVat
Результат float

$locale защищенное свойство

protected $locale

$orderElements защищенное свойство

protected $orderElements

$paymentMethod защищенное свойство

protected string $paymentMethod
Результат string

$paymentStatus защищенное свойство

protected int $paymentStatus
Результат integer

$reference защищенное свойство

protected string $reference
Результат string

$shippingAddress1 защищенное свойство

protected string $shippingAddress1
Результат string

$shippingAddress2 защищенное свойство

protected string $shippingAddress2
Результат string

$shippingAddress3 защищенное свойство

protected string $shippingAddress3
Результат string

$shippingCity защищенное свойство

protected string $shippingCity
Результат string

$shippingCountryCode защищенное свойство

protected string $shippingCountryCode
Результат string

$shippingEmail защищенное свойство

protected string $shippingEmail
Результат string

$shippingFax защищенное свойство

protected string $shippingFax
Результат string

$shippingMobile защищенное свойство

protected string $shippingMobile
Результат string

$shippingName защищенное свойство

protected string $shippingName
Результат string

$shippingPhone защищенное свойство

protected string $shippingPhone
Результат string

$shippingPostcode защищенное свойство

protected string $shippingPostcode
Результат string

$status защищенное свойство

protected int $status
Результат integer

$totalExcl защищенное свойство

protected float $totalExcl
Результат float

$totalInc защищенное свойство

protected float $totalInc
Результат float

$updatedAt защищенное свойство

protected $updatedAt

$username защищенное свойство

protected string $username
Результат string

$validatedAt защищенное свойство

protected datetime $validatedAt
Результат datetime