Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

51 lines
1.5KB

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