您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

48 行
1.0KB

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