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.

43 lines
947B

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