No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

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