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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-03-17 07:26:24 +0300
committerChristopher Ng <chrng8@gmail.com>2022-03-17 07:30:25 +0300
commit3986b9fd05402ea9f81963a395d4a723e7d6c41f (patch)
treea8ddf6e7a677737ed77e05bf10758dce712f7f0f
parentfeb50b39f33e35067a8a4449110d7e0476ddef52 (diff)
Add example to DocBlockenh/account-set-all-properties
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--lib/public/Accounts/IAccount.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/public/Accounts/IAccount.php b/lib/public/Accounts/IAccount.php
index dcec17f9363..383f21068a9 100644
--- a/lib/public/Accounts/IAccount.php
+++ b/lib/public/Accounts/IAccount.php
@@ -76,6 +76,40 @@ interface IAccount extends \JsonSerializable {
*
* @param array<string, array<string, string>>|array<string, array<int, array<string, string>>> $properties
*
+ * e.g. `[
+ * 'displayname' => [
+ * 'name' => 'displayname',
+ * 'value' => 'Jonathan Smith',
+ * 'scope' => 'v2-federated',
+ * 'verified' => '0',
+ * 'verificationData' => '',
+ * ],
+ * 'email' => [
+ * 'name' => 'email',
+ * 'value' => 'jonathan@example.org',
+ * 'scope' => 'v2-federated',
+ * 'verified' => '0',
+ * 'verificationData' => '',
+ * ],
+ * // ...
+ * 'additional_mail' => [
+ * [
+ * 'name' => 'additional_mail',
+ * 'value' => 'jon@example.org',
+ * 'scope' => 'v2-local',
+ * 'verified' => '0',
+ * 'verificationData' => '',
+ * ],
+ * [
+ * 'name' => 'additional_mail',
+ * 'value' => 'jon@earth.org',
+ * 'scope' => 'v2-local',
+ * 'verified' => '0',
+ * 'verificationData' => '',
+ * ],
+ * ],
+ * ]`
+ *
* @since 24.0.0
*/
public function setAllPropertiesFromJson(array $properties): IAccount;