Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PointSaleContainer.php 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\PointSale;
  3. use Lc\CaracoleBundle\Definition\Field\PointSale\PointSaleFieldDefinition;
  4. use Lc\CaracoleBundle\Factory\PointSale\PointSaleFactory;
  5. use Lc\CaracoleBundle\Repository\PointSale\PointSaleRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\PointSale\PointSaleStore;
  7. use Lc\CaracoleBundle\Solver\PointSale\PointSaleSolver;
  8. class PointSaleContainer
  9. {
  10. protected PointSaleFactory $factory;
  11. protected PointSaleSolver $solver;
  12. protected PointSaleFieldDefinition $fieldDefinition;
  13. protected PointSaleRepositoryQuery $repositoryQuery;
  14. protected PointSaleStore $store;
  15. public function __construct(
  16. PointSaleFactory $factory,
  17. PointSaleSolver $solver,
  18. PointSaleFieldDefinition $fieldDefinition,
  19. PointSaleRepositoryQuery $repositoryQuery,
  20. PointSaleStore $store
  21. ) {
  22. $this->factory = $factory;
  23. $this->solver = $solver;
  24. $this->fieldDefinition = $fieldDefinition;
  25. $this->repositoryQuery = $repositoryQuery;
  26. $this->store = $store;
  27. }
  28. public function getFactory(): PointSaleFactory
  29. {
  30. return $this->factory;
  31. }
  32. public function getSolver(): PointSaleSolver
  33. {
  34. return $this->solver;
  35. }
  36. public function getFieldDefinition(): PointSaleFieldDefinition
  37. {
  38. return $this->fieldDefinition;
  39. }
  40. public function getRepositoryQuery(): PointSaleRepositoryQuery
  41. {
  42. return $this->repositoryQuery;
  43. }
  44. public function getStore(): PointSaleStore
  45. {
  46. $this->store->resetContext();
  47. return $this->store;
  48. }
  49. }