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.3KB

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