您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SiteSettingContainer.php 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace Lc\SovBundle\Container\Setting;
  3. use Lc\SovBundle\Definition\SiteSettingDefinition;
  4. use Lc\SovBundle\Factory\Setting\SiteSettingFactory;
  5. use Lc\SovBundle\Repository\Setting\SiteSettingRepositoryQuery;
  6. use Lc\SovBundle\Repository\Setting\SiteSettingStore;
  7. use Lc\SovBundle\Solver\Setting\SettingSolver;
  8. class SiteSettingContainer
  9. {
  10. protected SiteSettingFactory $factory;
  11. protected SiteSettingDefinition $definition;
  12. protected SiteSettingRepositoryQuery $repositoryQuery;
  13. protected SiteSettingStore $store;
  14. protected SettingSolver $settingSolver;
  15. public function __construct(
  16. SiteSettingFactory $factory,
  17. SiteSettingDefinition $definition,
  18. SiteSettingRepositoryQuery $repositoryQuery,
  19. SiteSettingStore $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(): SiteSettingFactory
  29. {
  30. return $this->factory;
  31. }
  32. public function getDefinition(): SiteSettingDefinition
  33. {
  34. return $this->definition;
  35. }
  36. public function getRepositoryQuery(): SiteSettingRepositoryQuery
  37. {
  38. return $this->repositoryQuery;
  39. }
  40. public function getStore(): SiteSettingStore
  41. {
  42. return $this->store;
  43. }
  44. public function getSettingSolver(): SettingSolver
  45. {
  46. return $this->settingSolver;
  47. }
  48. }