Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

69 rindas
2.0KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Credit;
  3. use Lc\CaracoleBundle\Builder\Credit\CreditHistoryBuilder;
  4. use Lc\CaracoleBundle\Definition\Field\Credit\CreditHistoryFieldDefinition;
  5. use Lc\CaracoleBundle\Factory\Credit\CreditHistoryFactory;
  6. use Lc\CaracoleBundle\Repository\Credit\CreditHistoryRepositoryQuery;
  7. use Lc\CaracoleBundle\Repository\Credit\CreditHistoryStore;
  8. use Lc\CaracoleBundle\Solver\Credit\CreditHistorySolver;
  9. class CreditHistoryContainer
  10. {
  11. protected CreditHistoryFactory $factory;
  12. protected CreditHistoryRepositoryQuery $repositoryQuery;
  13. protected CreditHistoryStore $store;
  14. protected CreditHistoryBuilder $builder;
  15. protected CreditHistorySolver $solver;
  16. protected CreditHistoryFieldDefinition $fieldDefinition;
  17. public function __construct(
  18. CreditHistoryFactory $factory,
  19. CreditHistoryRepositoryQuery $repositoryQuery,
  20. CreditHistorySolver $solver,
  21. CreditHistoryStore $store,
  22. CreditHistoryBuilder $builder,
  23. CreditHistoryFieldDefinition $fieldDefinition
  24. ) {
  25. $this->factory = $factory;
  26. $this->repositoryQuery = $repositoryQuery;
  27. $this->solver = $solver;
  28. $this->store = $store;
  29. $this->builder = $builder;
  30. $this->fieldDefinition = $fieldDefinition;
  31. }
  32. public function getFactory(): CreditHistoryFactory
  33. {
  34. return $this->factory;
  35. }
  36. public function getRepositoryQuery(): CreditHistoryRepositoryQuery
  37. {
  38. return $this->repositoryQuery;
  39. }
  40. public function getSolver(): CreditHistorySolver
  41. {
  42. return $this->solver;
  43. }
  44. public function getStore(): CreditHistoryStore
  45. {
  46. $this->store->resetContext();
  47. return $this->store;
  48. }
  49. public function getBuilder(): CreditHistoryBuilder
  50. {
  51. return $this->builder;
  52. }
  53. public function getFieldDefinition(): CreditHistoryFieldDefinition
  54. {
  55. return $this->fieldDefinition;
  56. }
  57. }