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.

68 lines
1.9KB

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