Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

UtilsManager.php 3.8KB

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