Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2021-07-07 12:45:00 +0300
committerAnna Larch <anna@nextcloud.com>2021-07-12 16:03:34 +0300
commit6d44305d0f1133f15d2b7fabad1a5919d4b43546 (patch)
tree820954e99f3377e1ec785b8877a7e5214e4a1cff /lib/Contracts
parent4ecb5a1f060a5a8f25722d0676f8b67b005cbbd6 (diff)
Move userId to controller
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IUserPreferences.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Contracts/IUserPreferences.php b/lib/Contracts/IUserPreferences.php
index efaed8e45..765cae347 100644
--- a/lib/Contracts/IUserPreferences.php
+++ b/lib/Contracts/IUserPreferences.php
@@ -29,15 +29,17 @@ namespace OCA\Mail\Contracts;
interface IUserPreferences {
/**
+ * @param string $userId
* @param string $key
* @param mixed $value
* @return mixed new value
*/
- public function setPreference($key, $value);
+ public function setPreference(string $userId, $key, $value);
/**
+ * @param string $userId
* @param string $key
* @param mixed|null $default
*/
- public function getPreference($key, $default = null);
+ public function getPreference(string $userId, $key, $default = null);
}