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

67 行
1.7KB

  1. <?php
  2. namespace Lc\SovBundle\Container\User;
  3. use Lc\SovBundle\Builder\User\UserBuilder;
  4. use Lc\SovBundle\Definition\Field\User\UserFieldDefinition;
  5. use Lc\SovBundle\Factory\User\UserFactory;
  6. use Lc\SovBundle\Repository\User\UserRepositoryQuery;
  7. use Lc\SovBundle\Repository\User\UserStore;
  8. use Lc\SovBundle\Solver\User\UserSolver;
  9. class UserContainer
  10. {
  11. protected UserFactory $factory;
  12. protected UserBuilder $builder;
  13. protected UserRepositoryQuery $repositoryQuery;
  14. protected UserStore $store;
  15. protected UserSolver $solver;
  16. protected UserFieldDefinition $fieldDefinition;
  17. public function __construct(
  18. UserFactory $factory,
  19. UserBuilder $builder,
  20. UserRepositoryQuery $repositoryQuery,
  21. UserStore $store,
  22. UserSolver $solver,
  23. UserFieldDefinition $fieldDefinition
  24. ) {
  25. $this->factory = $factory;
  26. $this->builder = $builder;
  27. $this->repositoryQuery = $repositoryQuery;
  28. $this->store = $store;
  29. $this->solver = $solver;
  30. $this->fieldDefinition = $fieldDefinition;
  31. }
  32. public function getFactory(): UserFactory
  33. {
  34. return $this->factory;
  35. }
  36. public function getBuilder(): UserBuilder
  37. {
  38. return $this->builder;
  39. }
  40. public function getRepositoryQuery(): UserRepositoryQuery
  41. {
  42. return $this->repositoryQuery;
  43. }
  44. public function getStore(): UserStore
  45. {
  46. return $this->store;
  47. }
  48. public function getSolver(): UserSolver
  49. {
  50. return $this->solver;
  51. }
  52. public function getFieldDefinition(): UserFieldDefinition
  53. {
  54. return $this->fieldDefinition;
  55. }
  56. }