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.

37 lines
790B

  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 CreditHistory::class;
  9. }
  10. public function getServices(): array
  11. {
  12. return [
  13. CreditHistorySolver::class,
  14. CreditHistoryBuilder::class,
  15. CreditHistoryRepository::class,
  16. ];
  17. }
  18. public function getSolver(): CreditHistorySolver
  19. {
  20. return new CreditHistorySolver();
  21. }
  22. public function getBuilder(): CreditHistoryBuilder
  23. {
  24. return new CreditHistoryBuilder();
  25. }
  26. public function getRepository(): CreditHistoryRepository
  27. {
  28. return new CreditHistoryRepository();
  29. }
  30. }