Property | Type | Description | |
---|---|---|---|
$basketElements | array | ||
$billingAddress | Sonata\Component\Customer\AddressInterface | ||
$billingAddressId | integer | ||
$cptElement | integer | ||
$currency | Sonata\Component\Currency\CurrencyInterface | ||
$customer | Sonata\Component\Customer\CustomerInterface | ||
$customerId | integer | ||
$deliveryAddress | Sonata\Component\Customer\AddressInterface | ||
$deliveryAddressId | integer | ||
$deliveryMethod | Sonata\Component\Delivery\ServiceDeliveryInterface | ||
$deliveryMethodCode | string | ||
$inBuild | boolean | ||
$locale | string | ||
$options | array | ||
$paymentMethod | Sonata\Component\Payment\PaymentInterface | ||
$paymentMethodCode | string | ||
$positions | array | ||
$productPool |
Method | Description | |
---|---|---|
__construct ( ) | ||
addBasketElement ( Sonata\Component\Basket\BasketElementInterface $basketElement ) | ||
buildPrices ( ) | ||
clean ( ) | ||
countBasketElements ( ) | ||
getBasketElements ( ) | ||
getBillingAddress ( ) | ||
getBillingAddressId ( ) | ||
getCurrency ( ) | ||
getCustomer ( ) | ||
getCustomerId ( ) | ||
getDeliveryAddress ( ) | ||
getDeliveryAddressId ( ) | ||
getDeliveryMethod ( ) | ||
getDeliveryMethodCode ( ) | ||
getDeliveryPrice ( $vat = false ) | ||
getDeliveryVat ( ) | ||
getElement ( Sonata\Component\Product\ProductInterface $product ) | ||
getElementByPos ( $pos ) | ||
getLocale ( ) | ||
getOption ( $name, $default = null ) | ||
getOptions ( ) | ||
getPaymentMethod ( ) | ||
getPaymentMethodCode ( ) | ||
getPositions ( ) | ||
getProductPool ( ) | ||
getSerializationFields ( ) | ||
getTotal ( $vat = false, $recurrentOnly = null ) | ||
getUnserializationFields ( ) | ||
getVatAmount ( ) | ||
getVatAmounts ( ) | ||
hasBasketElements ( ) | ||
hasProduct ( Sonata\Component\Product\ProductInterface $product ) | ||
hasRecurrentPayment ( ) | ||
isAddable ( Sonata\Component\Product\ProductInterface $product ) | ||
isEmpty ( ) | ||
isValid ( $elementsOnly = false ) | ||
removeBasketElement ( Sonata\Component\Basket\BasketElementInterface $element ) | ||
removeElement ( Sonata\Component\Basket\BasketElementInterface $element ) | ||
removeElements ( array $elementsToRemove ) | ||
reset ( $full = true ) | ||
serialize ( ) | ||
setBasketElements ( $basketElements ) | ||
setBillingAddress ( Sonata\Component\Customer\AddressInterface $address = null ) | ||
setBillingAddressId ( $billingAddressId ) | ||
setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency ) | ||
setCustomer ( Sonata\Component\Customer\CustomerInterface $customer = null ) | ||
setCustomerId ( $customerId ) | ||
setDeliveryAddress ( Sonata\Component\Customer\AddressInterface $address = null ) | ||
setDeliveryAddressId ( $deliveryAddressId ) | ||
setDeliveryMethod ( Sonata\Component\Delivery\ServiceDeliveryInterface $method = null ) | ||
setDeliveryMethodCode ( $deliveryMethodCode ) | ||
setLocale ( $locale ) | ||
setOption ( $name, $value ) | ||
setOptions ( $options ) | ||
setPaymentMethod ( Sonata\Component\Payment\PaymentInterface $method = null ) | ||
setPaymentMethodCode ( $paymentMethodCode ) | ||
setProductPool ( |
||
unserialize ( $data ) |
public addBasketElement ( Sonata\Component\Basket\BasketElementInterface $basketElement ) | ||
$basketElement | Sonata\Component\Basket\BasketElementInterface |
public getElement ( Sonata\Component\Product\ProductInterface $product ) | ||
$product | Sonata\Component\Product\ProductInterface |
public hasProduct ( Sonata\Component\Product\ProductInterface $product ) | ||
$product | Sonata\Component\Product\ProductInterface |
public isAddable ( Sonata\Component\Product\ProductInterface $product ) | ||
$product | Sonata\Component\Product\ProductInterface |
public removeBasketElement ( Sonata\Component\Basket\BasketElementInterface $element ) | ||
$element | Sonata\Component\Basket\BasketElementInterface |
public removeElement ( Sonata\Component\Basket\BasketElementInterface $element ) | ||
$element | Sonata\Component\Basket\BasketElementInterface |
public removeElements ( array $elementsToRemove ) | ||
$elementsToRemove | array |
public setBillingAddress ( Sonata\Component\Customer\AddressInterface $address = null ) | ||
$address | Sonata\Component\Customer\AddressInterface |
public setCurrency ( Sonata\Component\Currency\CurrencyInterface $currency ) | ||
$currency | Sonata\Component\Currency\CurrencyInterface |
public setCustomer ( Sonata\Component\Customer\CustomerInterface $customer = null ) | ||
$customer | Sonata\Component\Customer\CustomerInterface |
public setDeliveryAddress ( Sonata\Component\Customer\AddressInterface $address = null ) | ||
$address | Sonata\Component\Customer\AddressInterface |
public setDeliveryMethod ( Sonata\Component\Delivery\ServiceDeliveryInterface $method = null ) | ||
$method | Sonata\Component\Delivery\ServiceDeliveryInterface |
public setPaymentMethod ( Sonata\Component\Payment\PaymentInterface $method = null ) | ||
$method | Sonata\Component\Payment\PaymentInterface |
public setProductPool ( |
||
$pool |
protected AddressInterface,Sonata\Component\Customer $billingAddress | ||
return | Sonata\Component\Customer\AddressInterface |
protected CurrencyInterface,Sonata\Component\Currency $currency | ||
return | Sonata\Component\Currency\CurrencyInterface |
protected CustomerInterface,Sonata\Component\Customer $customer | ||
return | Sonata\Component\Customer\CustomerInterface |
protected AddressInterface,Sonata\Component\Customer $deliveryAddress | ||
return | Sonata\Component\Customer\AddressInterface |
protected ServiceDeliveryInterface,Sonata\Component\Delivery $deliveryMethod | ||
return | Sonata\Component\Delivery\ServiceDeliveryInterface |
protected PaymentInterface,Sonata\Component\Payment $paymentMethod | ||
return | Sonata\Component\Payment\PaymentInterface |