| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | final class MapSettings extends AbstractSettings implements MapSettingsInterface |
||
| 6 | { |
||
| 7 | private const CONFIG_PATH = 'map'; |
||
| 8 | private const SETTING_ENCRYPTION_KEY = 'encryptionKey'; |
||
| 9 | |||
| 10 | 2 | public function getEncryptionKey(): ?string |
|
| 11 | { |
||
| 12 | 2 | if ($this->exists(self::SETTING_ENCRYPTION_KEY)) { |
|
| 13 | 1 | $key = $this->getStringConfigValue(self::SETTING_ENCRYPTION_KEY); |
|
| 14 | |||
| 15 | 1 | return $key; |
|
| 16 | } |
||
| 17 | |||
| 18 | 1 | return null; |
|
| 19 | } |
||
| 20 | |||
| 21 | 2 | public function getConfigPath(): string |
|
| 24 | } |
||
| 25 | } |
||
| 26 |