No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

56 líneas
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. }