No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

OrderProductContainer.php 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Order;
  3. use Lc\CaracoleBundle\Builder\Order\OrderProductBuilder;
  4. use Lc\CaracoleBundle\Factory\Order\OrderProductFactory;
  5. use Lc\CaracoleBundle\Repository\Order\OrderProductRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Order\OrderProductStore;
  7. class OrderProductContainer
  8. {
  9. protected OrderProductFactory $factory;
  10. protected OrderProductBuilder $builder;
  11. protected OrderProductRepositoryQuery $repositoryQuery;
  12. protected OrderProductStore $store;
  13. public function __construct(
  14. OrderProductFactory $factory,
  15. OrderProductBuilder $builder,
  16. OrderProductRepositoryQuery $repositoryQuery,
  17. OrderProductStore $store
  18. ) {
  19. $this->factory = $factory;
  20. $this->builder = $builder;
  21. $this->repositoryQuery = $repositoryQuery;
  22. $this->store = $store;
  23. }
  24. public function getFactory(): OrderProductFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getBuilder(): OrderProductBuilder
  29. {
  30. return $this->builder;
  31. }
  32. public function getRepositoryQuery(): OrderProductRepositoryQuery
  33. {
  34. return $this->repositoryQuery;
  35. }
  36. public function getStore(): OrderProductStore
  37. {
  38. return $this->store;
  39. }
  40. }