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.

47 lines
1.1KB

  1. <?php
  2. namespace common\logic\CreditHistory;
  3. use common\logic\ContainerInterface;
  4. use common\logic\CreditHistory\CreditHistoryBuilder;
  5. use common\logic\CreditHistory\CreditHistoryFactory;
  6. use common\logic\CreditHistory\CreditHistoryRepository;
  7. use common\logic\CreditHistory\CreditHistorySolver;
  8. class CreditHistoryContainer implements ContainerInterface
  9. {
  10. public function getEntityFqcn(): string
  11. {
  12. return CreditHistory::class;
  13. }
  14. public function getServices(): array
  15. {
  16. return [
  17. CreditHistoryFactory::class,
  18. CreditHistorySolver::class,
  19. CreditHistoryBuilder::class,
  20. CreditHistoryRepository::class,
  21. ];
  22. }
  23. public function getFactory(): CreditHistoryFactory
  24. {
  25. return new CreditHistoryFactory();
  26. }
  27. public function getSolver(): CreditHistorySolver
  28. {
  29. return new CreditHistorySolver();
  30. }
  31. public function getBuilder(): CreditHistoryBuilder
  32. {
  33. return new CreditHistoryBuilder();
  34. }
  35. public function getRepository(): CreditHistoryRepository
  36. {
  37. return new CreditHistoryRepository();
  38. }
  39. }