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

ProductCategoryContainer.php 1.3KB

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