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.

45 lines
1008B

  1. <?php
  2. namespace Lc\SovBundle\Container\Site;
  3. use App\Entity\Site\Site;
  4. use Lc\SovBundle\Factory\Site\SiteFactory;
  5. use Lc\SovBundle\Repository\Site\SiteRepositoryQuery;
  6. use Lc\SovBundle\Repository\Site\SiteStore;
  7. class SiteContainer
  8. {
  9. protected SiteFactory $factory;
  10. protected SiteRepositoryQuery $repositoryQuery;
  11. protected SiteStore $store;
  12. public function __construct(
  13. SiteFactory $factory,
  14. SiteRepositoryQuery $repositoryQuery,
  15. SiteStore $store
  16. ) {
  17. $this->factory = $factory;
  18. $this->repositoryQuery = $repositoryQuery;
  19. $this->store = $store;
  20. }
  21. public static function getEntityFqcn()
  22. {
  23. return Site::class;
  24. }
  25. public function getFactory(): SiteFactory
  26. {
  27. return $this->factory;
  28. }
  29. public function getRepositoryQuery(): SiteRepositoryQuery
  30. {
  31. return $this->repositoryQuery;
  32. }
  33. public function getStore(): SiteStore
  34. {
  35. return $this->store;
  36. }
  37. }