You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 line
1.4KB

  1. <?php
  2. namespace common\logic\Payment\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\Payment\Repository\PaymentRepository;
  5. use common\logic\Payment\Service\PaymentNotifier;
  6. use common\logic\Payment\Service\PaymentUtils;
  7. use common\logic\Payment\Service\PaymentBuilder;
  8. use common\logic\Payment\Service\PaymentDefinition;
  9. use common\logic\Payment\Service\PaymentSolver;
  10. class PaymentContainer extends AbstractContainer
  11. {
  12. public function getServices(): array
  13. {
  14. return [
  15. PaymentDefinition::class,
  16. PaymentSolver::class,
  17. PaymentBuilder::class,
  18. PaymentRepository::class,
  19. PaymentNotifier::class,
  20. PaymentUtils::class,
  21. ];
  22. }
  23. public function getDefinition(): PaymentDefinition
  24. {
  25. return PaymentDefinition::getInstance();
  26. }
  27. public function getSolver(): PaymentSolver
  28. {
  29. return PaymentSolver::getInstance();
  30. }
  31. public function getBuilder(): PaymentBuilder
  32. {
  33. return PaymentBuilder::getInstance();
  34. }
  35. public function getRepository(): PaymentRepository
  36. {
  37. return PaymentRepository::getInstance();
  38. }
  39. public function getNotifier(): PaymentNotifier
  40. {
  41. return PaymentNotifier::getInstance();
  42. }
  43. public function getUtils(): PaymentUtils
  44. {
  45. return PaymentUtils::getInstance();
  46. }
  47. }