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.

TicketContainer.php 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace Lc\SovBundle\Container\Ticket;
  3. use Lc\SovBundle\Builder\Ticket\TicketBuilder;
  4. use Lc\SovBundle\Factory\Ticket\TicketFactory;
  5. use Lc\SovBundle\Repository\Ticket\TicketRepositoryQuery;
  6. use Lc\SovBundle\Repository\Ticket\TicketStore;
  7. use Lc\SovBundle\Solver\Ticket\TicketSolver;
  8. class TicketContainer
  9. {
  10. protected TicketFactory $factory;
  11. protected TicketBuilder $builder;
  12. protected TicketRepositoryQuery $repositoryQuery;
  13. protected TicketStore $store;
  14. protected TicketSolver $solver;
  15. public function __construct(
  16. TicketFactory $factory,
  17. TicketBuilder $builder,
  18. TicketRepositoryQuery $repositoryQuery,
  19. TicketStore $store,
  20. TicketSolver $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(): TicketFactory
  29. {
  30. return $this->factory;
  31. }
  32. public function getBuilder(): TicketBuilder
  33. {
  34. return $this->builder;
  35. }
  36. public function getRepositoryQuery(): TicketRepositoryQuery
  37. {
  38. return $this->repositoryQuery;
  39. }
  40. public function getStore(): TicketStore
  41. {
  42. return $this->store;
  43. }
  44. public function getSolver(): TicketSolver
  45. {
  46. return $this->solver;
  47. }
  48. }