選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

OrderShopContainer.php 2.0KB

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