110 satır
3.2KB

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