You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TicketContainer.php 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. }