scopeConfig = $scopeConfig; $this->storeManager = $storeManager; } /** * Return store configuration value * * @param string $path * @param int $storeId * @return mixed */ protected function getConfigValue($path, $storeId) { return $this->scopeConfig->getValue( $path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $storeId ); } /** * Set current store * * @param Store $store * @return void */ public function setStore(Store $store) { $this->store = $store; } /** * Return store * * @return Store */ public function getStore() { //current store if ($this->store instanceof Store) { return $this->store; } return $this->storeManager->getStore(); } /** * Set customer name * * @param string $name * @return void */ public function setCustomerName($name) { $this->customerName = $name; } /** * Set customer email * * @param string $email * @return void */ public function setCustomerEmail($email) { $this->customerEmail = $email; } /** * Return customer name * * @return string */ public function getCustomerName() { return $this->customerName; } /** * Return customer email * * @return string */ public function getCustomerEmail() { return $this->customerEmail; } }