@@ -30,46 +30,46 @@ |
||
| 30 | 30 | |
| 31 | 31 | class AppConfig implements IAppConfig { |
| 32 | 32 | |
| 33 | - /** @var IConfig */ |
|
| 34 | - private $config; |
|
| 33 | + /** @var IConfig */ |
|
| 34 | + private $config; |
|
| 35 | 35 | |
| 36 | - /** @var string */ |
|
| 37 | - private $appName; |
|
| 36 | + /** @var string */ |
|
| 37 | + private $appName; |
|
| 38 | 38 | |
| 39 | - public function __construct(IConfig $config, string $appName) { |
|
| 40 | - $this->config = $config; |
|
| 41 | - $this->appName = $appName; |
|
| 42 | - } |
|
| 39 | + public function __construct(IConfig $config, string $appName) { |
|
| 40 | + $this->config = $config; |
|
| 41 | + $this->appName = $appName; |
|
| 42 | + } |
|
| 43 | 43 | |
| 44 | - public function getAppKeys(): array { |
|
| 45 | - return $this->config->getAppKeys($this->appName); |
|
| 46 | - } |
|
| 44 | + public function getAppKeys(): array { |
|
| 45 | + return $this->config->getAppKeys($this->appName); |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - public function setAppValue(string $key, string $value): void { |
|
| 49 | - $this->config->setAppValue($this->appName, $key, $value); |
|
| 50 | - } |
|
| 48 | + public function setAppValue(string $key, string $value): void { |
|
| 49 | + $this->config->setAppValue($this->appName, $key, $value); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - public function getAppValue(string $key, string $default = ''): string { |
|
| 53 | - return $this->config->getAppValue($this->appName, $key, $default); |
|
| 54 | - } |
|
| 52 | + public function getAppValue(string $key, string $default = ''): string { |
|
| 53 | + return $this->config->getAppValue($this->appName, $key, $default); |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | - public function deleteAppValue(string $key): void { |
|
| 57 | - $this->config->deleteAppValue($this->appName, $key); |
|
| 58 | - } |
|
| 56 | + public function deleteAppValue(string $key): void { |
|
| 57 | + $this->config->deleteAppValue($this->appName, $key); |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - public function deleteAppValues(): void { |
|
| 61 | - $this->config->deleteAppValues($this->appName); |
|
| 62 | - } |
|
| 60 | + public function deleteAppValues(): void { |
|
| 61 | + $this->config->deleteAppValues($this->appName); |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | - public function setUserValue(string $userId, string $key, string $value, ?string $preCondition = null): void { |
|
| 65 | - $this->config->setUserValue($userId, $this->appName, $key, $value, $preCondition); |
|
| 66 | - } |
|
| 64 | + public function setUserValue(string $userId, string $key, string $value, ?string $preCondition = null): void { |
|
| 65 | + $this->config->setUserValue($userId, $this->appName, $key, $value, $preCondition); |
|
| 66 | + } |
|
| 67 | 67 | |
| 68 | - public function getUserValue(string $userId, string $key, string $default = ''): string { |
|
| 69 | - return $this->config->getUserValue($userId, $this->appName, $key, $default); |
|
| 70 | - } |
|
| 68 | + public function getUserValue(string $userId, string $key, string $default = ''): string { |
|
| 69 | + return $this->config->getUserValue($userId, $this->appName, $key, $default); |
|
| 70 | + } |
|
| 71 | 71 | |
| 72 | - public function deleteUserValue(string $userId, string $key): void { |
|
| 73 | - $this->config->deleteUserValue($userId, $this->appName, $key); |
|
| 74 | - } |
|
| 72 | + public function deleteUserValue(string $userId, string $key): void { |
|
| 73 | + $this->config->deleteUserValue($userId, $this->appName, $key); |
|
| 74 | + } |
|
| 75 | 75 | } |