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.

67 satır
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 TicketSolver $solver;
  16. protected TicketFieldDefinition $fieldDefinition;
  17. public function __construct(
  18. TicketFactory $factory,
  19. TicketBuilder $builder,
  20. TicketRepositoryQuery $repositoryQuery,
  21. TicketStore $store,
  22. TicketSolver $solver,
  23. TicketFieldDefinition $fieldDefinition
  24. ) {
  25. $this->factory = $factory;
  26. $this->builder = $builder;
  27. $this->repositoryQuery = $repositoryQuery;
  28. $this->store = $store;
  29. $this->solver = $solver;
  30. $this->fieldDefinition = $fieldDefinition;
  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 getSolver(): TicketSolver
  49. {
  50. return $this->solver;
  51. }
  52. public function getFieldDefinition(): TicketFieldDefinition
  53. {
  54. return $this->fieldDefinition;
  55. }
  56. }