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.

41 lines
1.1KB

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