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.

58 lines
1.5KB

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