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.

49 lines
1.2KB

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