Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace Lc\PietroBundle\Container\Workshop;
  3. use Lc\PietroBundle\Definition\Field\Workshop\WorkshopFieldDefinition;
  4. use Lc\PietroBundle\Factory\Workshop\WorkshopFactory;
  5. use Lc\PietroBundle\Repository\Workshop\WorkshopRepositoryQuery;
  6. use Lc\PietroBundle\Repository\Workshop\WorkshopStore;
  7. use Lc\PietroBundle\Solver\Workshop\WorkshopSolver;
  8. class WorkshopContainer
  9. {
  10. protected WorkshopFactory $factory;
  11. protected WorkshopRepositoryQuery $repositoryQuery;
  12. protected WorkshopStore $store;
  13. protected WorkshopFieldDefinition $fieldDefinition;
  14. protected WorkshopSolver $solver;
  15. public function __construct(
  16. WorkshopFactory $factory,
  17. WorkshopRepositoryQuery $repositoryQuery,
  18. WorkshopStore $store,
  19. WorkshopFieldDefinition $fieldDefinition,
  20. WorkshopSolver $solver
  21. ) {
  22. $this->factory = $factory;
  23. $this->repositoryQuery = $repositoryQuery;
  24. $this->store = $store;
  25. $this->fieldDefinition = $fieldDefinition;
  26. $this->solver = $solver;
  27. }
  28. public function getFactory(): WorkshopFactory
  29. {
  30. return $this->factory;
  31. }
  32. public function getRepositoryQuery(): WorkshopRepositoryQuery
  33. {
  34. return $this->repositoryQuery;
  35. }
  36. public function getStore(): WorkshopStore
  37. {
  38. return $this->store;
  39. }
  40. public function getFieldDefinition(): WorkshopFieldDefinition
  41. {
  42. return $this->fieldDefinition;
  43. }
  44. public function getSolver(): WorkshopSolver
  45. {
  46. return $this->solver;
  47. }
  48. }