aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/StorageConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Lib/StorageConfig.php')
-rw-r--r--apps/files_external/lib/Lib/StorageConfig.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/files_external/lib/Lib/StorageConfig.php b/apps/files_external/lib/Lib/StorageConfig.php
index 8cb59f70892..25205a24321 100644
--- a/apps/files_external/lib/Lib/StorageConfig.php
+++ b/apps/files_external/lib/Lib/StorageConfig.php
@@ -31,9 +31,12 @@ namespace OCA\Files_External\Lib;
use OCA\Files_External\Lib\Auth\AuthMechanism;
use OCA\Files_External\Lib\Auth\IUserProvided;
use OCA\Files_External\Lib\Backend\Backend;
+use OCA\Files_External\ResponseDefinitions;
/**
* External storage configuration
+ *
+ * @psalm-import-type FilesExternalStorageConfig from ResponseDefinitions
*/
class StorageConfig implements \JsonSerializable {
public const MOUNT_TYPE_ADMIN = 1;
@@ -63,7 +66,7 @@ class StorageConfig implements \JsonSerializable {
/**
* Backend options
*
- * @var array
+ * @var array<string, mixed>
*/
private $backendOptions = [];
@@ -112,7 +115,7 @@ class StorageConfig implements \JsonSerializable {
/**
* Mount-specific options
*
- * @var array
+ * @var array<string, mixed>
*/
private $mountOptions = [];
@@ -396,6 +399,7 @@ class StorageConfig implements \JsonSerializable {
/**
* Serialize config to JSON
+ * @return FilesExternalStorageConfig
*/
public function jsonSerialize(bool $obfuscate = false): array {
$result = [];
@@ -407,7 +411,7 @@ class StorageConfig implements \JsonSerializable {
if ($obfuscate) {
$this->formatStorageForUI();
}
-
+
$result['mountPoint'] = $this->mountPoint;
$result['backend'] = $this->backend->getIdentifier();
$result['authMechanism'] = $this->authMechanism->getIdentifier();