Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

58 lines
1.3KB

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