You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SectionSettingContainer.php 1.7KB

3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Setting;
  3. use Lc\CaracoleBundle\Definition\SectionSettingDefinition;
  4. use Lc\CaracoleBundle\Factory\Setting\SectionSettingFactory;
  5. use Lc\CaracoleBundle\Repository\Setting\SectionSettingRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Setting\SectionSettingStore;
  7. use Lc\SovBundle\Solver\Setting\SettingSolver;
  8. class SectionSettingContainer
  9. {
  10. protected SectionSettingFactory $factory;
  11. protected SectionSettingDefinition $definition;
  12. protected SectionSettingRepositoryQuery $repositoryQuery;
  13. protected SectionSettingStore $store;
  14. protected SettingSolver $settingSolver;
  15. public function __construct(
  16. SectionSettingFactory $factory,
  17. SectionSettingDefinition $definition,
  18. SectionSettingRepositoryQuery $repositoryQuery,
  19. SectionSettingStore $store,
  20. SettingSolver $settingSolver
  21. ) {
  22. $this->factory = $factory;
  23. $this->definition = $definition;
  24. $this->repositoryQuery = $repositoryQuery;
  25. $this->store = $store;
  26. $this->settingSolver = $settingSolver;
  27. }
  28. public function getFactory(): SectionSettingFactory
  29. {
  30. return $this->factory;
  31. }
  32. public function getDefinition(): SectionSettingDefinition
  33. {
  34. return $this->definition;
  35. }
  36. public function getRepositoryQuery(): SectionSettingRepositoryQuery
  37. {
  38. return $this->repositoryQuery;
  39. }
  40. public function getStore(): SectionSettingStore
  41. {
  42. $this->store->resetContext();
  43. return $this->store;
  44. }
  45. public function getSettingSolver(): SettingSolver
  46. {
  47. return $this->settingSolver;
  48. }
  49. }