state = $state; } /** * @param null $scopeCode * @return bool */ public function isOrderSyncEnabled($scopeCode = null) { return $this->scopeConfig->isSetFlag( self::ACTIVE_CAMPAIGN_ORDER_STATUS, ScopeInterface::SCOPE_STORES, $scopeCode ); } /** * @param null $scopeCode * @return bool */ public function isOrderSyncInRealTime($scopeCode = null) { return $this->scopeConfig->isSetFlag( self::ACTIVE_CAMPAIGN_ORDER_SYNC_REAL_TIME, ScopeInterface::SCOPE_STORES, $scopeCode ); } /** * @param null $scopeCode * @return mixed */ public function getOrderSyncNum($scopeCode = null) { return $this->scopeConfig->getValue( self::ACTIVE_CAMPAIGN_ORDER_SYNC_NUM, ScopeInterface::SCOPE_STORES, $scopeCode ); } }