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.

67 lines
1.7KB

  1. <?php
  2. namespace Lc\SovBundle\Container\Ticket;
  3. use Lc\SovBundle\Builder\Ticket\TicketBuilder;
  4. use Lc\SovBundle\Definition\Field\Ticket\TicketFieldDefinition;
  5. use Lc\SovBundle\Factory\Ticket\TicketFactory;
  6. use Lc\SovBundle\Repository\Ticket\TicketRepositoryQuery;
  7. use Lc\SovBundle\Repository\Ticket\TicketStore;
  8. use Lc\SovBundle\Solver\Ticket\TicketSolver;
  9. class TicketContainer
  10. {
  11. protected TicketFactory $factory;
  12. protected TicketBuilder $builder;
  13. protected TicketRepositoryQuery $repositoryQuery;
  14. protected TicketStore $store;
  15. protected TicketFieldDefinition $fieldDefinition;
  16. protected TicketSolver $solver;
  17. public function __construct(
  18. TicketFactory $factory,
  19. TicketBuilder $builder,
  20. TicketRepositoryQuery $repositoryQuery,
  21. TicketStore $store,
  22. TicketFieldDefinition $fieldDefinition,
  23. TicketSolver $solver
  24. ) {
  25. $this->factory = $factory;
  26. $this->builder = $builder;
  27. $this->repositoryQuery = $repositoryQuery;
  28. $this->store = $store;
  29. $this->fieldDefinition = $fieldDefinition;
  30. $this->solver = $solver;
  31. }
  32. public function getFactory(): TicketFactory
  33. {
  34. return $this->factory;
  35. }
  36. public function getBuilder(): TicketBuilder
  37. {
  38. return $this->builder;
  39. }
  40. public function getRepositoryQuery(): TicketRepositoryQuery
  41. {
  42. return $this->repositoryQuery;
  43. }
  44. public function getStore(): TicketStore
  45. {
  46. return $this->store;
  47. }
  48. public function getFieldDefinition(): TicketFieldDefinition
  49. {
  50. return $this->fieldDefinition;
  51. }
  52. public function getSolver(): TicketSolver
  53. {
  54. return $this->solver;
  55. }
  56. }