Bladeren bron

Essai UtilsManager

feature/export_comptable
Guillaume 4 jaren geleden
bovenliggende
commit
99e086a284
1 gewijzigde bestanden met toevoegingen van 46 en 3 verwijderingen
  1. +46
    -3
      ShopBundle/Services/UtilsManager.php

+ 46
- 3
ShopBundle/Services/UtilsManager.php Bestand weergeven

@@ -3,26 +3,44 @@
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)
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
@@ -30,6 +48,26 @@ class UtilsManager
return $this->utils ;
}

public function getUserUtils(): UserUtilsInterface
{
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 ;
@@ -40,9 +78,14 @@ class UtilsManager
return $this->deliveryUtils ;
}

public function getOrderUtils(): OrderUtilsInterface
public function getCreditUtils(): CreditUtilsInterface
{
return $this->orderUtils ;
return $this->creditUtils ;
}

public function getDocumentUtils(): DocumentUtilsInterface
{
return $this->documentUtils ;
}

}

Laden…
Annuleren
Opslaan