Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

PointSaleSectionContainer.php 1.5KB

2 лет назад
2 лет назад
2 лет назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. }