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.

49 lines
1.3KB

  1. <?php
  2. namespace common\logic\User\CreditHistory\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\User\CreditHistory\Repository\CreditHistoryRepository;
  5. use common\logic\User\CreditHistory\Service\CreditHistoryBuilder;
  6. use common\logic\User\CreditHistory\Service\CreditHistoryDefinition;
  7. use common\logic\User\CreditHistory\Service\CreditHistorySolver;
  8. use common\logic\User\CreditHistory\Service\CreditUtils;
  9. class CreditHistoryContainer extends AbstractContainer
  10. {
  11. public function getServices(): array
  12. {
  13. return [
  14. CreditHistoryDefinition::class,
  15. CreditHistorySolver::class,
  16. CreditHistoryBuilder::class,
  17. CreditHistoryRepository::class,
  18. CreditUtils::class,
  19. ];
  20. }
  21. public function getDefinition(): CreditHistoryDefinition
  22. {
  23. return CreditHistoryDefinition::getInstance();
  24. }
  25. public function getSolver(): CreditHistorySolver
  26. {
  27. return CreditHistorySolver::getInstance();
  28. }
  29. public function getBuilder(): CreditHistoryBuilder
  30. {
  31. return CreditHistoryBuilder::getInstance();
  32. }
  33. public function getRepository(): CreditHistoryRepository
  34. {
  35. return CreditHistoryRepository::getInstance();
  36. }
  37. public function getCreditUtils(): CreditUtils
  38. {
  39. return CreditUtils::getInstance();
  40. }
  41. }