/** * @param \Magento\Framework\App\Helper\Context $context * @param \Magento\Reports\Model\Resource\Order\Collection $orderCollection */ public function __construct(\Magento\Framework\App\Helper\Context $context, \Magento\Reports\Model\Resource\Order\Collection $orderCollection) { $this->_orderCollection = $orderCollection; parent::__construct($context); }
/** * @param \Magento\Framework\App\Helper\Context $context * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig * @param \Magento\Store\Model\StoreManagerInterface $storeManager * @param \Magento\Framework\App\State $appState * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency * @param \Magento\Reports\Model\Resource\Order\Collection $orderCollection * @param bool $dbCompatibleMode */ public function __construct(\Magento\Framework\App\Helper\Context $context, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\App\State $appState, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, \Magento\Reports\Model\Resource\Order\Collection $orderCollection, $dbCompatibleMode = true) { $this->_orderCollection = $orderCollection; parent::__construct($context, $scopeConfig, $storeManager, $appState, $priceCurrency, $dbCompatibleMode); }