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.

49 lines
1.2KB

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