Model for handling Magento BI token value into config.
Definition at line 15 of file AnalyticsToken.php.
◆ __construct()
- Parameters
-
ReinitableConfigInterface | $reinitableConfig | |
ScopeConfigInterface | $config | |
WriterInterface | $configWriter | |
Definition at line 48 of file AnalyticsToken.php.
53 $this->reinitableConfig = $reinitableConfig;
54 $this->config = $config;
55 $this->configWriter = $configWriter;
◆ getToken()
Get Magento BI token value.
- Returns
- string|null
Definition at line 63 of file AnalyticsToken.php.
65 return $this->config->getValue($this->tokenPath);
◆ isTokenExist()
◆ storeToken()
Stores Magento BI token value.
- Parameters
-
- Returns
- bool
Definition at line 75 of file AnalyticsToken.php.
77 $this->configWriter->save($this->tokenPath,
$value);
78 $this->reinitableConfig->reinit();
The documentation for this class was generated from the following file: