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

49 行
1.2KB

  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\PaymentUtils;
  6. use common\logic\Payment\Service\PaymentBuilder;
  7. use common\logic\Payment\Service\PaymentDefinition;
  8. use common\logic\Payment\Service\PaymentSolver;
  9. class PaymentContainer extends AbstractContainer
  10. {
  11. public function getServices(): array
  12. {
  13. return [
  14. PaymentDefinition::class,
  15. PaymentSolver::class,
  16. PaymentBuilder::class,
  17. PaymentRepository::class,
  18. PaymentUtils::class,
  19. ];
  20. }
  21. public function getDefinition(): PaymentDefinition
  22. {
  23. return PaymentDefinition::getInstance();
  24. }
  25. public function getSolver(): PaymentSolver
  26. {
  27. return PaymentSolver::getInstance();
  28. }
  29. public function getBuilder(): PaymentBuilder
  30. {
  31. return PaymentBuilder::getInstance();
  32. }
  33. public function getRepository(): PaymentRepository
  34. {
  35. return PaymentRepository::getInstance();
  36. }
  37. public function getPaymentUtils(): PaymentUtils
  38. {
  39. return PaymentUtils::getInstance();
  40. }
  41. }