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.

76 satır
2.0KB

  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. }