|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
-
- namespace Lc\ShopBundle\Services ;
-
- use Lc\ShopBundle\Context\DeliveryUtilsInterface;
- use Lc\ShopBundle\Context\MerchantUtilsInterface;
- use Lc\ShopBundle\Context\OrderUtilsInterface;
- use Lc\ShopBundle\Context\PriceUtilsInterface;
- use Lc\ShopBundle\Context\ProductFamilyUtilsInterface;
-
- class UtilsManager
- {
- protected $utils ;
- protected $userUtils ;
- protected $merchantUtils ;
- protected $productFamilyUtils ;
- protected $orderUtils ;
- protected $priceUtils ;
- protected $deliveryUtils ;
- protected $creditUtils ;
- protected $documentUtils ;
-
- public function __construct(
- Utils $utils,
- UserUtils $userUtils,
- MerchantUtilsInterface $merchantUtils,
- ProductFamilyUtilsInterface $productFamilyUtils,
- OrderUtilsInterface $orderUtils,
- PriceUtilsInterface $priceUtils,
- DeliveryUtilsInterface $deliveryUtils,
- CreditUtils $creditUtils,
- DocumentUtils $documentUtils
- )
- {
- $this->utils = $utils ;
- $this->userUtils = $userUtils ;
- $this->merchantUtils = $merchantUtils ;
- $this->productFamilyUtils = $productFamilyUtils ;
- $this->orderUtils = $orderUtils ;
- $this->priceUtils = $priceUtils ;
- $this->deliveryUtils = $deliveryUtils ;
- $this->creditUtils = $creditUtils ;
- $this->documentUtils = $documentUtils ;
- }
-
- public function getUtils(): Utils
- {
- return $this->utils ;
- }
-
- public function getUserUtils(): UserUtils
- {
- return $this->userUtils ;
- }
-
- public function getMerchantUtils(): MerchantUtilsInterface
- {
- return $this->merchantUtils ;
- }
-
- public function getProductFamilyUtils(): ProductFamilyUtilsInterface
- {
- return $this->productFamilyUtils ;
- }
-
- public function getOrderUtils(): OrderUtilsInterface
- {
- return $this->orderUtils ;
- }
-
- public function getPriceUtils(): PriceUtilsInterface
- {
- return $this->priceUtils ;
- }
-
- public function getDeliveryUtils(): DeliveryUtilsInterface
- {
- return $this->deliveryUtils ;
- }
-
- public function getCreditUtils(): CreditUtils
- {
- return $this->creditUtils ;
- }
-
- public function getDocumentUtils(): DocumentUtils
- {
- return $this->documentUtils ;
- }
-
- }
|