Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

PointSaleSectionContainer.php 1.4KB

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