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.

PageContainer.php 1.3KB

2 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
2 vuotta sitten
3 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace Lc\SovBundle\Container\Site;
  3. use App\Entity\Site\Page;
  4. use Lc\SovBundle\Definition\Field\Site\PageFieldDefinition;
  5. use Lc\SovBundle\Factory\Site\PageFactory;
  6. use Lc\SovBundle\Repository\Site\PageRepositoryQuery;
  7. use Lc\SovBundle\Repository\Site\PageStore;
  8. class PageContainer
  9. {
  10. protected PageFactory $factory;
  11. protected PageRepositoryQuery $repositoryQuery;
  12. protected PageStore $store;
  13. protected PageFieldDefinition $fieldDefinition;
  14. public function __construct(
  15. PageFactory $factory,
  16. PageRepositoryQuery $repositoryQuery,
  17. PageStore $store,
  18. PageFieldDefinition $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 Page::class;
  28. }
  29. public function getFactory(): PageFactory
  30. {
  31. return $this->factory;
  32. }
  33. public function getRepositoryQuery(): PageRepositoryQuery
  34. {
  35. return $this->repositoryQuery;
  36. }
  37. public function getStore(): PageStore
  38. {
  39. return $this->store;
  40. }
  41. public function getFieldDefinition(): PageFieldDefinition
  42. {
  43. return $this->fieldDefinition;
  44. }
  45. }