Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

TicketContainer.php 1.8KB

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