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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }