Exemple #1
0
 /**
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Tax\Model\Config $taxConfig
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Framework\StoreManagerInterface $storeManager, \Magento\Tax\Model\Config $taxConfig, PriceCurrencyInterface $priceCurrency, array $data = array())
 {
     parent::__construct($data);
     $this->priceCurrency = $priceCurrency;
     $this->_storeManager = $storeManager;
     $this->_taxConfig = $taxConfig;
 }
 /**
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(PriceCurrencyInterface $priceCurrency, array $data = [])
 {
     parent::__construct($data);
     $this->priceCurrency = $priceCurrency;
 }
Exemple #3
0
 /**
  * Constructor
  *
  * By default is looking for first argument as array and assigns it as object
  * attributes This behavior may change in child classes
  *
  * @param \Magento\Weee\Helper\Data $weeeData
  * @param array                     $data
  */
 public function __construct(\Magento\Weee\Helper\Data $weeeData, array $data = [])
 {
     $this->_weeeData = $weeeData;
     parent::__construct($data);
 }