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.

NewsletterContainer.php 1.5KB

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