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.

49 line
1.3KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Credit;
  3. use Lc\CaracoleBundle\Builder\Credit\CreditHistoryBuilder;
  4. use Lc\CaracoleBundle\Factory\Credit\CreditHistoryFactory;
  5. use Lc\CaracoleBundle\Repository\Credit\CreditHistoryRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Credit\CreditHistoryStore;
  7. class CreditHistoryContainer
  8. {
  9. protected CreditHistoryFactory $factory;
  10. protected CreditHistoryRepositoryQuery $repositoryQuery;
  11. protected CreditHistoryStore $store;
  12. protected CreditHistoryBuilder $builder;
  13. public function __construct(
  14. CreditHistoryFactory $factory,
  15. CreditHistoryRepositoryQuery $repositoryQuery,
  16. CreditHistoryStore $store,
  17. CreditHistoryBuilder $builder
  18. ) {
  19. $this->factory = $factory;
  20. $this->repositoryQuery = $repositoryQuery;
  21. $this->store = $store;
  22. $this->builder = $builder;
  23. }
  24. public function getFactory(): CreditHistoryFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getRepositoryQuery(): CreditHistoryRepositoryQuery
  29. {
  30. return $this->repositoryQuery;
  31. }
  32. public function getStore(): CreditHistoryStore
  33. {
  34. return $this->store;
  35. }
  36. public function getBuilder(): CreditHistoryBuilder
  37. {
  38. return $this->builder;
  39. }
  40. }