Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

OrderProductReductionCatalogContainer.php 1.7KB

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