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.

87 Zeilen
2.4KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Order;
  3. use App\Resolver\OrderShopResolver;
  4. use Lc\CaracoleBundle\Builder\Order\OrderShopBuilder;
  5. use Lc\CaracoleBundle\Definition\Field\Order\OrderShopFieldDefinition;
  6. use Lc\CaracoleBundle\Factory\Order\OrderShopFactory;
  7. use Lc\CaracoleBundle\Repository\Order\OrderShopRepositoryQuery;
  8. use Lc\CaracoleBundle\Repository\Order\OrderShopStore;
  9. use Lc\CaracoleBundle\Solver\Order\OrderShopSolver;
  10. use Lc\CaracoleBundle\Transformer\Order\OrderShopTransformer;
  11. class OrderShopContainer
  12. {
  13. protected OrderShopFactory $factory;
  14. protected OrderShopSolver $solver;
  15. protected OrderShopRepositoryQuery $repositoryQuery;
  16. protected OrderShopStore $store;
  17. protected OrderShopBuilder $builder;
  18. protected OrderShopResolver $resolver;
  19. protected OrderShopTransformer $transformer;
  20. protected OrderShopFieldDefinition $fieldDefinition;
  21. public function __construct(
  22. OrderShopFactory $factory,
  23. OrderShopSolver $solver,
  24. OrderShopRepositoryQuery $repositoryQuery,
  25. OrderShopStore $store,
  26. OrderShopResolver $resolver,
  27. OrderShopBuilder $builder,
  28. OrderShopTransformer $transformer,
  29. OrderShopFieldDefinition $fieldDefinition
  30. ) {
  31. $this->factory = $factory;
  32. $this->solver = $solver;
  33. $this->repositoryQuery = $repositoryQuery;
  34. $this->store = $store;
  35. $this->resolver = $resolver;
  36. $this->builder = $builder;
  37. $this->transformer = $transformer;
  38. $this->fieldDefinition = $fieldDefinition;
  39. }
  40. public function getFactory(): OrderShopFactory
  41. {
  42. return $this->factory;
  43. }
  44. public function getSolver(): OrderShopSolver
  45. {
  46. return $this->solver;
  47. }
  48. public function getRepositoryQuery(): OrderShopRepositoryQuery
  49. {
  50. return $this->repositoryQuery;
  51. }
  52. public function getStore(): OrderShopStore
  53. {
  54. $this->store->resetContext();
  55. return $this->store;
  56. }
  57. public function getResolver(): OrderShopResolver
  58. {
  59. return $this->resolver;
  60. }
  61. public function getBuilder(): OrderShopBuilder
  62. {
  63. return $this->builder;
  64. }
  65. public function getTransformer(): OrderShopTransformer
  66. {
  67. return $this->transformer;
  68. }
  69. public function getFieldDefinition(): OrderShopFieldDefinition
  70. {
  71. return $this->fieldDefinition;
  72. }
  73. }