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.

38 lines
852B

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