選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

UserContainer.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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\Definition\RolesDefinitionInterface;
  6. use Lc\SovBundle\Factory\User\UserFactory;
  7. use Lc\SovBundle\Repository\User\UserRepositoryQuery;
  8. use Lc\SovBundle\Repository\User\UserStore;
  9. use Lc\SovBundle\Solver\User\UserSolver;
  10. class UserContainer
  11. {
  12. protected UserFactory $factory;
  13. protected UserBuilder $builder;
  14. protected UserRepositoryQuery $repositoryQuery;
  15. protected UserStore $store;
  16. protected UserSolver $solver;
  17. protected UserFieldDefinition $fieldDefinition;
  18. protected RolesDefinitionInterface $rolesDefinition;
  19. public function __construct(
  20. UserFactory $factory,
  21. UserBuilder $builder,
  22. UserRepositoryQuery $repositoryQuery,
  23. UserStore $store,
  24. UserSolver $solver,
  25. UserFieldDefinition $fieldDefinition,
  26. RolesDefinitionInterface $rolesDefinition
  27. ) {
  28. $this->factory = $factory;
  29. $this->builder = $builder;
  30. $this->repositoryQuery = $repositoryQuery;
  31. $this->store = $store;
  32. $this->solver = $solver;
  33. $this->fieldDefinition = $fieldDefinition;
  34. $this->rolesDefinition = $rolesDefinition;
  35. }
  36. public function getFactory(): UserFactory
  37. {
  38. return $this->factory;
  39. }
  40. public function getBuilder(): UserBuilder
  41. {
  42. return $this->builder;
  43. }
  44. public function getRepositoryQuery(): UserRepositoryQuery
  45. {
  46. return $this->repositoryQuery;
  47. }
  48. public function getStore(): UserStore
  49. {
  50. return $this->store;
  51. }
  52. public function getSolver(): UserSolver
  53. {
  54. return $this->solver;
  55. }
  56. public function getFieldDefinition(): UserFieldDefinition
  57. {
  58. return $this->fieldDefinition;
  59. }
  60. public function getRoleDefinition(): RolesDefinitionInterface
  61. {
  62. return $this->rolesDefinition;
  63. }
  64. }