Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

UserContainer.php 1.7KB

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