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.

50 line
1.0KB

  1. <?php
  2. namespace domain\Payment;
  3. use domain\_\AbstractModule;
  4. class PaymentModule extends AbstractModule
  5. {
  6. public function getServices(): array
  7. {
  8. return [
  9. PaymentDefinition::class,
  10. PaymentSolver::class,
  11. PaymentBuilder::class,
  12. PaymentRepository::class,
  13. PaymentNotifier::class,
  14. PaymentManager::class,
  15. ];
  16. }
  17. public function getDefinition(): PaymentDefinition
  18. {
  19. return PaymentDefinition::getInstance();
  20. }
  21. public function getSolver(): PaymentSolver
  22. {
  23. return PaymentSolver::getInstance();
  24. }
  25. public function getBuilder(): PaymentBuilder
  26. {
  27. return PaymentBuilder::getInstance();
  28. }
  29. public function getRepository(): PaymentRepository
  30. {
  31. return PaymentRepository::getInstance();
  32. }
  33. public function getNotifier(): PaymentNotifier
  34. {
  35. return PaymentNotifier::getInstance();
  36. }
  37. public function getManager(): PaymentManager
  38. {
  39. return PaymentManager::getInstance();
  40. }
  41. }