carrierConfig = $carrierConfig; $this->_websiteModel = $websiteModel; parent::__construct($context, $data); } /** * Get shipping model * * @return \Magento\Ups\Helper\Config */ public function getCarrierConfig() { return $this->carrierConfig; } /** * Get website model * * @return \Magento\Store\Model\Website */ public function getWebsiteModel() { return $this->_websiteModel; } /** * Get store config * * @param string $path * @param mixed $store * @return mixed */ public function getConfig($path, $store = null) { return $this->_scopeConfig->getValue($path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store); } }