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

60 行
1.6KB

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