]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add example to DocBlock 31488/head
authorChristopher Ng <chrng8@gmail.com>
Thu, 17 Mar 2022 04:26:24 +0000 (04:26 +0000)
committerChristopher Ng <chrng8@gmail.com>
Thu, 17 Mar 2022 16:33:19 +0000 (16:33 +0000)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
lib/public/Accounts/IAccount.php

index dcec17f9363d0b8692f8a6519ab333abe8f838d9..383f21068a994e7014d4edee1f9d46881726bcc5 100644 (file)
@@ -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;