aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-03-17 04:26:24 +0000
committerChristopher Ng <chrng8@gmail.com>2022-03-17 16:33:19 +0000
commitc505bb144954821a86a57a496d2a31d9f6f6cb1f (patch)
tree2f7f88862a20f47e582c72ab3da3f19688aff235 /lib
parent2d9d0702f00410c5868482c0017fc93a06eaef90 (diff)
downloadnextcloud-server-c505bb144954821a86a57a496d2a31d9f6f6cb1f.tar.gz
nextcloud-server-c505bb144954821a86a57a496d2a31d9f6f6cb1f.zip
Add example to DocBlock
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib')
-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;