Ejemplo n.º 1
0
 /**
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param array $data
  */
 public function __construct(\Magento\Store\Model\StoreManagerInterface $storeManager, array $data = array())
 {
     $this->_storeManager = $storeManager;
     parent::__construct($data);
 }
Ejemplo n.º 2
0
 /**
  * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, array $data = [])
 {
     $this->priceCurrency = $priceCurrency;
     parent::__construct($data);
 }
Ejemplo n.º 3
0
 /**
  * Creates a PositiveResult object.
  *
  * @param string[] $reporting List of reporting Check classes
  * @param string $code The result code
  */
 public function __construct(array $reporting = [], $code = null)
 {
     parent::__construct($reporting);
     $this->code = $code;
 }
Ejemplo n.º 4
0
 public function __construct($error = null, $message = 'OK')
 {
     $this->setSuccess(true);
     parent::__construct($error, $message);
 }
Ejemplo n.º 5
0
 public function __construct($error = -1, $message = 'Error occured')
 {
     $this->setSuccess(false);
     parent::__construct($error, $message);
 }