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.

57 linhas
1.7KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Order;
  3. use App\Entity\Order\OrderProductReductionCatalog;
  4. use Lc\CaracoleBundle\Factory\Order\OrderProductReductionCatalogFactory;
  5. use Lc\CaracoleBundle\Repository\Order\OrderProductReductionCatalogRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Order\OrderProductReductionCatalogStore;
  7. use Lc\CaracoleBundle\Solver\Order\OrderProductReductionCatalogSolver;
  8. class OrderProductReductionCatalogContainer
  9. {
  10. protected OrderProductReductionCatalogFactory $factory;
  11. protected OrderProductReductionCatalogSolver $solver;
  12. protected OrderProductReductionCatalogRepositoryQuery $repositoryQuery;
  13. protected OrderProductReductionCatalogStore $store;
  14. public function __construct(
  15. OrderProductReductionCatalogFactory $factory,
  16. OrderProductReductionCatalogSolver $solver,
  17. OrderProductReductionCatalogRepositoryQuery $repositoryQuery,
  18. OrderProductReductionCatalogStore $store
  19. ) {
  20. $this->factory = $factory;
  21. $this->solver = $solver;
  22. $this->repositoryQuery = $repositoryQuery;
  23. $this->store = $store;
  24. }
  25. public static function getEntityFqcn()
  26. {
  27. return OrderProductReductionCatalog::class;
  28. }
  29. public function getFactory(): OrderProductReductionCatalogFactory
  30. {
  31. return $this->factory;
  32. }
  33. public function getSolver(): OrderProductReductionCatalogSolver
  34. {
  35. return $this->solver;
  36. }
  37. public function getRepositoryQuery(): OrderProductReductionCatalogRepositoryQuery
  38. {
  39. return $this->repositoryQuery;
  40. }
  41. public function getStore(): OrderProductReductionCatalogStore
  42. {
  43. return $this->store;
  44. }
  45. }