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.

MerchantContainer.php 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Merchant;
  3. use Lc\CaracoleBundle\Builder\Merchant\MerchantBuilder;
  4. use Lc\CaracoleBundle\Factory\Merchant\MerchantFactory;
  5. use Lc\CaracoleBundle\Repository\Merchant\MerchantRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Merchant\MerchantStore;
  7. use Lc\CaracoleBundle\Resolver\MerchantResolver;
  8. use Lc\CaracoleBundle\Solver\Merchant\MerchantSolver;
  9. use Lc\SovBundle\Solver\Setting\SettingSolver;
  10. class MerchantContainer
  11. {
  12. protected MerchantFactory $factory;
  13. protected MerchantSolver $solver;
  14. protected MerchantBuilder $builder;
  15. protected MerchantResolver $resolver;
  16. protected MerchantRepositoryQuery $repositoryQuery;
  17. protected MerchantStore $store;
  18. public function __construct(
  19. MerchantFactory $factory,
  20. MerchantSolver $solver,
  21. MerchantBuilder $builder,
  22. MerchantResolver $resolver,
  23. MerchantRepositoryQuery $repositoryQuery,
  24. MerchantStore $store
  25. ) {
  26. $this->factory = $factory;
  27. $this->solver = $solver;
  28. $this->builder = $builder;
  29. $this->resolver = $resolver;
  30. $this->repositoryQuery = $repositoryQuery;
  31. $this->store = $store;
  32. }
  33. public function getFactory(): MerchantFactory
  34. {
  35. return $this->factory;
  36. }
  37. public function getSolver(): MerchantSolver
  38. {
  39. return $this->solver;
  40. }
  41. public function getResolver(): MerchantResolver
  42. {
  43. return $this->resolver;
  44. }
  45. public function getRepositoryQuery(): MerchantRepositoryQuery
  46. {
  47. return $this->repositoryQuery;
  48. }
  49. public function getStore(): MerchantStore
  50. {
  51. return $this->store;
  52. }
  53. public function getBuilder(): MerchantBuilder
  54. {
  55. return $this->builder;
  56. }
  57. }