Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

UserContainer.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. class UserContainer
  8. {
  9. protected UserFactory $factory;
  10. protected UserBuilder $builder;
  11. protected UserRepositoryQuery $repositoryQuery;
  12. protected UserStore $store;
  13. public function __construct(
  14. UserFactory $factory,
  15. UserBuilder $builder,
  16. UserRepositoryQuery $repositoryQuery,
  17. UserStore $store
  18. ) {
  19. $this->factory = $factory;
  20. $this->builder = $builder;
  21. $this->repositoryQuery = $repositoryQuery;
  22. $this->store = $store;
  23. }
  24. public function getFactory(): UserFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getBuilder(): UserBuilder
  29. {
  30. return $this->builder;
  31. }
  32. public function getRepositoryQuery(): UserRepositoryQuery
  33. {
  34. return $this->repositoryQuery;
  35. }
  36. public function getStore(): UserStore
  37. {
  38. return $this->store;
  39. }
  40. }