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.

57 líneas
1.5KB

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