107 line
3.1KB

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