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.

ReductionCatalogContainer.php 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Reduction;
  3. use Lc\CaracoleBundle\Definition\Field\Reduction\ReductionCatalogFieldDefinition;
  4. use Lc\CaracoleBundle\Factory\Reduction\ReductionCatalogFactory;
  5. use Lc\CaracoleBundle\Repository\Reduction\ReductionCatalogRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Reduction\ReductionCatalogStore;
  7. class ReductionCatalogContainer
  8. {
  9. protected ReductionCatalogFactory $factory;
  10. protected ReductionCatalogRepositoryQuery $repositoryQuery;
  11. protected ReductionCatalogStore $store;
  12. protected ReductionCatalogFieldDefinition $fieldDefinition;
  13. public function __construct(
  14. ReductionCatalogFactory $factory,
  15. ReductionCatalogRepositoryQuery $repositoryQuery,
  16. ReductionCatalogStore $store,
  17. ReductionCatalogFieldDefinition $fieldDefinition
  18. ) {
  19. $this->factory = $factory;
  20. $this->repositoryQuery = $repositoryQuery;
  21. $this->store = $store;
  22. $this->fieldDefinition = $fieldDefinition;
  23. }
  24. public function getFactory(): ReductionCatalogFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getRepositoryQuery(): ReductionCatalogRepositoryQuery
  29. {
  30. return $this->repositoryQuery;
  31. }
  32. public function getStore(): ReductionCatalogStore
  33. {
  34. $this->store->resetContext();
  35. return $this->store;
  36. }
  37. public function getFieldDefinition(): ReductionCatalogFieldDefinition
  38. {
  39. return $this->fieldDefinition;
  40. }
  41. }