選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

PaymentModule.php 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. }