You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 line
1.8KB

  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\Resolver\ProductFamilyResolver;
  8. use Lc\CaracoleBundle\Solver\Product\ProductFamilySolver;
  9. class ProductFamilyContainer
  10. {
  11. protected ProductFamilyFactory $factory;
  12. protected ProductFamilySolver $solver;
  13. protected ProductFamilyRepositoryQuery $repositoryQuery;
  14. protected ProductFamilyStore $store;
  15. protected ProductFamilyBuilder $builder;
  16. protected ProductFamilyResolver $resolver;
  17. public function __construct(
  18. ProductFamilyFactory $factory,
  19. ProductFamilySolver $solver,
  20. ProductFamilyRepositoryQuery $repositoryQuery,
  21. ProductFamilyStore $store,
  22. ProductFamilyBuilder $builder,
  23. ProductFamilyResolver $resolver
  24. ) {
  25. $this->factory = $factory;
  26. $this->solver = $solver;
  27. $this->repositoryQuery = $repositoryQuery;
  28. $this->store = $store;
  29. $this->builder = $builder;
  30. $this->resolver = $resolver;
  31. }
  32. public function getFactory(): ProductFamilyFactory
  33. {
  34. return $this->factory;
  35. }
  36. public function getSolver(): ProductFamilySolver
  37. {
  38. return $this->solver;
  39. }
  40. public function getRepositoryQuery(): ProductFamilyRepositoryQuery
  41. {
  42. return $this->repositoryQuery;
  43. }
  44. public function getStore(): ProductFamilyStore
  45. {
  46. return $this->store;
  47. }
  48. public function getResolver(): ProductFamilyResolver
  49. {
  50. return $this->resolver;
  51. }
  52. public function getBuilder(): ProductFamilyBuilder
  53. {
  54. return $this->builder;
  55. }
  56. }