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.

CreditHistoryContainer.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. class CreditHistoryContainer extends AbstractContainer
  9. {
  10. public function getServices(): array
  11. {
  12. return [
  13. CreditHistoryDefinition::class,
  14. CreditHistorySolver::class,
  15. CreditHistoryBuilder::class,
  16. CreditHistoryRepository::class,
  17. ];
  18. }
  19. public function getDefinition(): CreditHistoryDefinition
  20. {
  21. return CreditHistoryDefinition::getInstance();
  22. }
  23. public function getSolver(): CreditHistorySolver
  24. {
  25. return CreditHistorySolver::getInstance();
  26. }
  27. public function getBuilder(): CreditHistoryBuilder
  28. {
  29. return CreditHistoryBuilder::getInstance();
  30. }
  31. public function getRepository(): CreditHistoryRepository
  32. {
  33. return CreditHistoryRepository::getInstance();
  34. }
  35. }