No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

VisitorContainer.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\User;
  3. use App\Entity\User\Visitor;
  4. use Lc\CaracoleBundle\Builder\User\VisitorBuilder;
  5. use Lc\CaracoleBundle\Factory\User\VisitorFactory;
  6. use Lc\CaracoleBundle\Repository\User\VisitorRepositoryQuery;
  7. use Lc\CaracoleBundle\Repository\User\VisitorStore;
  8. use Lc\CaracoleBundle\Resolver\VisitorResolver;
  9. use Lc\CaracoleBundle\Solver\User\VisitorSolver;
  10. class VisitorContainer
  11. {
  12. protected VisitorFactory $factory;
  13. protected VisitorSolver $solver;
  14. protected VisitorRepositoryQuery $repositoryQuery;
  15. protected VisitorStore $store;
  16. protected VisitorResolver $resolver;
  17. protected VisitorBuilder $visitorBuilder;
  18. public function __construct(
  19. VisitorFactory $factory,
  20. VisitorSolver $solver,
  21. VisitorRepositoryQuery $repositoryQuery,
  22. VisitorStore $store,
  23. VisitorResolver $resolver,
  24. VisitorBuilder $builder
  25. ) {
  26. $this->factory = $factory;
  27. $this->solver = $solver;
  28. $this->repositoryQuery = $repositoryQuery;
  29. $this->store = $store;
  30. $this->resolver = $resolver;
  31. $this->builder = $builder;
  32. }
  33. public static function getEntityFqcn()
  34. {
  35. return Visitor::class;
  36. }
  37. public function getFactory(): VisitorFactory
  38. {
  39. return $this->factory;
  40. }
  41. public function getSolver(): VisitorSolver
  42. {
  43. return $this->solver;
  44. }
  45. public function getRepositoryQuery(): VisitorRepositoryQuery
  46. {
  47. return $this->repositoryQuery;
  48. }
  49. public function getStore(): VisitorStore
  50. {
  51. return $this->store;
  52. }
  53. public function getResolver(): VisitorResolver
  54. {
  55. return $this->resolver;
  56. }
  57. public function getBuilder(): VisitorBuilder
  58. {
  59. return $this->builder;
  60. }
  61. }