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.

49 líneas
1.2KB

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