Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

50 lines
1.4KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\PointSale;
  3. use Lc\CaracoleBundle\Builder\PointSale\PointSaleSectionBuilder;
  4. use Lc\CaracoleBundle\Factory\PointSale\PointSaleSectionFactory;
  5. use Lc\CaracoleBundle\Repository\PointSale\PointSaleSectionRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\PointSale\PointSaleSectionStore;
  7. class PointSaleSectionContainer
  8. {
  9. protected PointSaleSectionFactory $factory;
  10. protected PointSaleSectionRepositoryQuery $repositoryQuery;
  11. protected PointSaleSectionStore $store;
  12. protected PointSaleSectionBuilder $builder;
  13. public function __construct(
  14. PointSaleSectionFactory $factory,
  15. PointSaleSectionRepositoryQuery $repositoryQuery,
  16. PointSaleSectionStore $store,
  17. PointSaleSectionBuilder $builder
  18. ) {
  19. $this->factory = $factory;
  20. $this->repositoryQuery = $repositoryQuery;
  21. $this->store = $store;
  22. $this->builder = $builder;
  23. }
  24. public function getFactory(): PointSaleSectionFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getRepositoryQuery(): PointSaleSectionRepositoryQuery
  29. {
  30. return $this->repositoryQuery;
  31. }
  32. public function getStore(): PointSaleSectionStore
  33. {
  34. $this->store->resetContext();
  35. return $this->store;
  36. }
  37. public function getBuilder(): PointSaleSectionBuilder
  38. {
  39. return $this->builder;
  40. }
  41. }