Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ProductFamilySectionPropertyContainer.php 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Product;
  3. use App\Definition\Field\Product\ProductFamilyFieldDefinition;
  4. use Lc\CaracoleBundle\Builder\Product\ProductFamilyBuilder;
  5. use Lc\CaracoleBundle\Builder\Product\ProductFamilySectionPropertyBuilder;
  6. use Lc\CaracoleBundle\Factory\Product\ProductFamilyFactory;
  7. use Lc\CaracoleBundle\Factory\Product\ProductFamilySectionPropertyFactory;
  8. use Lc\CaracoleBundle\Repository\Product\ProductFamilyRepositoryQuery;
  9. use Lc\CaracoleBundle\Repository\Product\ProductFamilySectionPropertyRepositoryQuery;
  10. use Lc\CaracoleBundle\Repository\Product\ProductFamilySectionPropertyStore;
  11. use Lc\CaracoleBundle\Repository\Product\ProductFamilyStore;
  12. use Lc\CaracoleBundle\Resolver\ProductFamilyResolver;
  13. use Lc\CaracoleBundle\Solver\Product\ProductFamilySectionPropertySolver;
  14. use Lc\CaracoleBundle\Solver\Product\ProductFamilySolver;
  15. class ProductFamilySectionPropertyContainer
  16. {
  17. protected ProductFamilySectionPropertyFactory $factory;
  18. protected ProductFamilySectionPropertySolver $solver;
  19. protected ProductFamilySectionPropertyRepositoryQuery $repositoryQuery;
  20. protected ProductFamilySectionPropertyStore $store;
  21. protected ProductFamilySectionPropertyBuilder $builder;
  22. public function __construct(
  23. ProductFamilySectionPropertyFactory $factory,
  24. ProductFamilySectionPropertySolver $solver,
  25. ProductFamilySectionPropertyRepositoryQuery $repositoryQuery,
  26. ProductFamilySectionPropertyStore $store,
  27. ProductFamilySectionPropertyBuilder $builder
  28. ) {
  29. $this->factory = $factory;
  30. $this->solver = $solver;
  31. $this->repositoryQuery = $repositoryQuery;
  32. $this->store = $store;
  33. $this->builder = $builder;
  34. }
  35. public function getFactory(): ProductFamilySectionPropertyFactory
  36. {
  37. return $this->factory;
  38. }
  39. public function getSolver(): ProductFamilySectionPropertySolver
  40. {
  41. return $this->solver;
  42. }
  43. public function getRepositoryQuery(): ProductFamilySectionPropertyRepositoryQuery
  44. {
  45. return $this->repositoryQuery;
  46. }
  47. public function getStore(): ProductFamilySectionPropertyStore
  48. {
  49. $this->store->resetContext();
  50. return $this->store;
  51. }
  52. public function getBuilder(): ProductFamilySectionPropertyBuilder
  53. {
  54. return $this->builder;
  55. }
  56. }