/** * @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); }
/** * @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); }
/** * 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; }
public function __construct($error = null, $message = 'OK') { $this->setSuccess(true); parent::__construct($error, $message); }
public function __construct($error = -1, $message = 'Error occured') { $this->setSuccess(false); parent::__construct($error, $message); }