BxBasePaymentsServices.php 790 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaCoreBaseRepresentation UNA Core Base Representation Classes
  7. * @{
  8. */
  9. /**
  10. * System services related to Payments.
  11. */
  12. class BxBasePaymentsServices extends BxDol
  13. {
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. }
  18. public function serviceGetPayments()
  19. {
  20. return BxDolPayments::getInstance()->getPayments();
  21. }
  22. public function serviceGetCartItemsCount()
  23. {
  24. return BxDolPayments::getInstance()->getCartItemsCount();
  25. }
  26. public function serviceGetOrdersCount($sType)
  27. {
  28. return BxDolPayments::getInstance()->getOrdersCount($sType);
  29. }
  30. }
  31. /** @} */