Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

DistributionContainer.php 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. }