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

53 行
1.5KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Product;
  3. use Lc\CaracoleBundle\Builder\Product\ProductFamilyBuilder;
  4. use Lc\CaracoleBundle\Factory\Product\ProductFamilyFactory;
  5. use Lc\CaracoleBundle\Repository\Product\ProductFamilyRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Product\ProductFamilyStore;
  7. use Lc\CaracoleBundle\Solver\Product\ProductFamilySolver;
  8. class ProductFamilyContainer
  9. {
  10. protected ProductFamilyFactory $factory;
  11. protected ProductFamilySolver $solver;
  12. protected ProductFamilyRepositoryQuery $repositoryQuery;
  13. protected ProductFamilyStore $store;
  14. protected ProductFamilyBuilder $builder;
  15. public function __construct(
  16. ProductFamilyFactory $factory,
  17. ProductFamilySolver $solver,
  18. ProductFamilyRepositoryQuery $repositoryQuery,
  19. ProductFamilyStore $store,
  20. ProductFamilyBuilder $builder
  21. ) {
  22. $this->factory = $factory;
  23. $this->solver = $solver;
  24. $this->repositoryQuery = $repositoryQuery;
  25. $this->store = $store;
  26. $this->builder = $builder;
  27. }
  28. public function getFactory(): ProductFamilyFactory
  29. {
  30. return $this->factory;
  31. }
  32. public function getSolver(): ProductFamilySolver
  33. {
  34. return $this->solver;
  35. }
  36. public function getRepositoryQuery(): ProductFamilyRepositoryQuery
  37. {
  38. return $this->repositoryQuery;
  39. }
  40. public function getStore(): ProductFamilyStore
  41. {
  42. return $this->store;
  43. }
  44. }