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\PietroBundle\Container\Workshop;
  3. use Lc\PietroBundle\Definition\Field\Workshop\EntryFieldDefinition;
  4. use Lc\PietroBundle\Factory\Workshop\EntryFactory;
  5. use Lc\PietroBundle\Repository\Workshop\EntryRepositoryQuery;
  6. use Lc\PietroBundle\Repository\Workshop\EntryStore;
  7. class EntryContainer
  8. {
  9. protected EntryFactory $factory;
  10. protected EntryRepositoryQuery $repositoryQuery;
  11. protected EntryStore $store;
  12. protected EntryFieldDefinition $fieldDefinition;
  13. public function __construct(
  14. EntryFactory $factory,
  15. EntryRepositoryQuery $repositoryQuery,
  16. EntryStore $store,
  17. EntryFieldDefinition $fieldDefinition
  18. ) {
  19. $this->factory = $factory;
  20. $this->repositoryQuery = $repositoryQuery;
  21. $this->store = $store;
  22. $this->fieldDefinition = $fieldDefinition;
  23. }
  24. public function getFactory(): EntryFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getRepositoryQuery(): EntryRepositoryQuery
  29. {
  30. return $this->repositoryQuery;
  31. }
  32. public function getStore(): EntryStore
  33. {
  34. return $this->store;
  35. }
  36. public function getFieldDefinition(): EntryFieldDefinition
  37. {
  38. return $this->fieldDefinition;
  39. }
  40. }