Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

48 lines
1.3KB

  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. }