Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

54 lines
1.4KB

  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\SovBundle\Solver\Setting\SettingSolver;
  9. class MerchantContainer
  10. {
  11. protected MerchantFactory $factory;
  12. protected MerchantBuilder $builder;
  13. protected MerchantResolver $resolver;
  14. protected MerchantRepositoryQuery $repositoryQuery;
  15. protected MerchantStore $store;
  16. public function __construct(
  17. MerchantFactory $factory,
  18. MerchantBuilder $builder,
  19. MerchantResolver $resolver,
  20. MerchantRepositoryQuery $repositoryQuery,
  21. MerchantStore $store
  22. ) {
  23. $this->factory = $factory;
  24. $this->builder = $builder;
  25. $this->resolver = $resolver;
  26. $this->repositoryQuery = $repositoryQuery;
  27. $this->store = $store;
  28. }
  29. public function getFactory(): MerchantFactory
  30. {
  31. return $this->factory;
  32. }
  33. public function getResolver(): MerchantResolver
  34. {
  35. return $this->resolver;
  36. }
  37. public function getRepositoryQuery(): MerchantRepositoryQuery
  38. {
  39. return $this->repositoryQuery;
  40. }
  41. public function getStore(): MerchantStore
  42. {
  43. return $this->store;
  44. }
  45. }