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.

UtilsManager.php 3.9KB

il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. namespace Lc\ShopBundle\Services ;
  3. use Lc\ShopBundle\Context\DeliveryUtilsInterface;
  4. use Lc\ShopBundle\Context\DocumentUtilsInterface;
  5. use Lc\ShopBundle\Context\MerchantUtilsInterface;
  6. use Lc\ShopBundle\Context\OrderUtilsInterface;
  7. use Lc\ShopBundle\Context\PriceUtilsInterface;
  8. use Lc\ShopBundle\Context\ProductFamilyUtilsInterface;
  9. use Lc\ShopBundle\Context\Services\StatisticsUtilsInterface;
  10. use Lc\ShopBundle\Context\UserUtilsInterface;
  11. use League\Flysystem\Util;
  12. class UtilsManager
  13. {
  14. protected $utils ;
  15. protected $userUtils ;
  16. protected $merchantUtils ;
  17. protected $productFamilyUtils ;
  18. protected $orderUtils ;
  19. protected $priceUtils ;
  20. protected $deliveryUtils ;
  21. protected $creditUtils ;
  22. protected $documentUtils ;
  23. protected $mailUtils ;
  24. protected $ticketUtils ;
  25. protected $statisticsUtils;
  26. protected $pointLocationUtils ;
  27. public function __construct(
  28. Utils $utils,
  29. UserUtilsInterface $userUtils,
  30. MerchantUtilsInterface $merchantUtils,
  31. ProductFamilyUtilsInterface $productFamilyUtils,
  32. OrderUtilsInterface $orderUtils,
  33. PriceUtilsInterface $priceUtils,
  34. DeliveryUtilsInterface $deliveryUtils,
  35. CreditUtils $creditUtils,
  36. DocumentUtilsInterface $documentUtils,
  37. MailUtils $mailUtils,
  38. TicketUtils $ticketUtils,
  39. PointLocationUtils $pointLocationUtils,
  40. UtilsProcess $utilsProcess
  41. )
  42. {
  43. $this->utils = $utils ;
  44. $this->userUtils = $userUtils ;
  45. $this->merchantUtils = $merchantUtils ;
  46. $this->productFamilyUtils = $productFamilyUtils ;
  47. $this->orderUtils = $orderUtils ;
  48. $this->priceUtils = $priceUtils ;
  49. $this->deliveryUtils = $deliveryUtils ;
  50. $this->creditUtils = $creditUtils ;
  51. $this->documentUtils = $documentUtils ;
  52. $this->mailUtils = $mailUtils ;
  53. $this->ticketUtils = $ticketUtils ;
  54. $this->pointLocationUtils = $pointLocationUtils ;
  55. $this->utilsProcess = $utilsProcess ;
  56. }
  57. public function getUtils(): Utils
  58. {
  59. return $this->utils ;
  60. }
  61. public function getUserUtils(): UserUtilsInterface
  62. {
  63. return $this->userUtils ;
  64. }
  65. public function getMerchantUtils(): MerchantUtilsInterface
  66. {
  67. return $this->merchantUtils ;
  68. }
  69. public function getProductFamilyUtils(): ProductFamilyUtilsInterface
  70. {
  71. return $this->productFamilyUtils ;
  72. }
  73. public function getOrderUtils(): OrderUtilsInterface
  74. {
  75. return $this->orderUtils ;
  76. }
  77. public function getPriceUtils(): PriceUtilsInterface
  78. {
  79. return $this->priceUtils ;
  80. }
  81. public function getDeliveryUtils(): DeliveryUtilsInterface
  82. {
  83. return $this->deliveryUtils ;
  84. }
  85. public function getCreditUtils(): CreditUtils
  86. {
  87. return $this->creditUtils ;
  88. }
  89. public function getDocumentUtils(): DocumentUtilsInterface
  90. {
  91. return $this->documentUtils ;
  92. }
  93. public function getMailUtils(): MailUtils
  94. {
  95. return $this->mailUtils ;
  96. }
  97. public function getTicketUtils(): TicketUtils
  98. {
  99. return $this->ticketUtils ;
  100. }
  101. public function getPointLocationUtils(): PointLocationUtils
  102. {
  103. return $this->pointLocationUtils ;
  104. }
  105. public function getUtilsProcess(): UtilsProcess
  106. {
  107. return $this->utilsProcess ;
  108. }
  109. }