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.

UserMerchantContainer.php 1.9KB

3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. $this->store->resetContext();
  47. return $this->store;
  48. }
  49. public function getBuilder(): UserMerchantBuilder
  50. {
  51. return $this->builder;
  52. }
  53. public function getFieldDefinition(): UserMerchantFieldDefinition
  54. {
  55. return $this->fieldDefinition;
  56. }
  57. }