BaseFacade
class BaseFacade implements FacadeInterface
Allow to assist in getting relevant data on the current application state
Methods
Constructor
Return an Address a CouponManager can process
Return an Customer a CouponManager can process
Return Checkout total price
Return Checkout total postage (only) price
Return Products total price
Return Product total tax price
No description
Return the Checkout currency EUR|USD
Return the number of Products in the Cart
Return the number of Products include quantity in the Cart
Return all Coupon given during the Checkout
Find one Coupon in the database from its code
Return platform Container
Return platform TranslatorInterface
Return platform Parser
Return the main currency THe one used to set prices in BackOffice
Return request
Return Constraint Validator
Return all available currencies
Return the event dispatcher,
Add a coupon in session
Details
at line 53
__construct(
ContainerInterface $container)
Constructor
at line 63
Cart
getCart()
Return a Cart a CouponManager can process
at line 73
Address
getDeliveryAddress()
Return an Address a CouponManager can process
at line 89
Customer
getCustomer()
Return an Customer a CouponManager can process
at line 99
float
getCheckoutTotalPrice()
Return Checkout total price
at line 109
float
getCheckoutPostagePrice()
Return Checkout total postage (only) price
at line 121
float
getCartTotalPrice(
bool $withItemsInPromo = true)
Return Products total price
at line 136
float
getCartTotalTaxPrice(
bool $withItemsInPromo = true)
Return Product total tax price
at line 155
Country
getDeliveryCountry()
at line 165
string
getCheckoutCurrency()
Return the Checkout currency EUR|USD
at line 175
int
getNbArticlesInCart()
Return the number of Products in the Cart
at line 180
int
getNbArticlesInCartIncludeQuantity()
Return the number of Products include quantity in the Cart
at line 197
array
getCurrentCoupons()
Return all Coupon given during the Checkout
at line 233
Coupon
findOneCouponByCode(
string $code)
Find one Coupon in the database from its code
at line 245
Container
getContainer()
Return platform Container
at line 255
TranslatorInterface
getTranslator()
Return platform TranslatorInterface
at line 265
ParserInterface
getParser()
Return platform Parser
at line 285
string
getMainCurrency()
Return the main currency THe one used to set prices in BackOffice
at line 295
Request
getRequest()
Return request
at line 305
ConditionEvaluator
getConditionEvaluator()
Return Constraint Validator
at line 315
array
getAvailableCurrencies()
Return all available currencies
at line 327
EventDispatcher
getDispatcher()
Return the event dispatcher,
at line 337
mixed|void
pushCouponInSession($couponCode)
Add a coupon in session