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

58 行
1.6KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Product;
  3. use Lc\CaracoleBundle\Factory\Product\ProductFamilyFactory;
  4. use Lc\CaracoleBundle\Repository\Product\ProductFamilyRepositoryQuery;
  5. use Lc\CaracoleBundle\Repository\Product\ProductFamilyStore;
  6. use Lc\CaracoleBundle\Resolver\ProductFamilyResolver;
  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 ProductFamilyResolver $resolver;
  15. public function __construct(
  16. ProductFamilyFactory $factory,
  17. ProductFamilySolver $solver,
  18. ProductFamilyRepositoryQuery $repositoryQuery,
  19. ProductFamilyStore $store,
  20. ProductFamilyResolver $resolver
  21. ) {
  22. $this->factory = $factory;
  23. $this->solver = $solver;
  24. $this->repositoryQuery = $repositoryQuery;
  25. $this->store = $store;
  26. $this->resolver = $resolver;
  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. public function getResolver(): ProductFamilyResolver
  45. {
  46. return $this->resolver;
  47. }
  48. }