Skip to content

Commit c7e44d2

Browse files
committed
Add example to DocBlock
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent c4c919d commit c7e44d2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

lib/public/Accounts/IAccount.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,40 @@ public function getProperties(): array;
7676
*
7777
* @param array<string, array<string, string>>|array<string, array<int, array<string, string>>> $properties
7878
*
79+
* e.g. `[
80+
* 'displayname' => [
81+
* 'name' => 'displayname',
82+
* 'value' => 'Jonathan Smith',
83+
* 'scope' => 'v2-federated',
84+
* 'verified' => '0',
85+
* 'verificationData' => '',
86+
* ],
87+
* 'email' => [
88+
* 'name' => 'email',
89+
* 'value' => 'jonathan@example.org',
90+
* 'scope' => 'v2-federated',
91+
* 'verified' => '0',
92+
* 'verificationData' => '',
93+
* ],
94+
* // ...
95+
* 'additional_mail' => [
96+
* [
97+
* 'name' => 'additional_mail',
98+
* 'value' => 'jon@example.org',
99+
* 'scope' => 'v2-local',
100+
* 'verified' => '0',
101+
* 'verificationData' => '',
102+
* ],
103+
* [
104+
* 'name' => 'additional_mail',
105+
* 'value' => 'jon@earth.org',
106+
* 'scope' => 'v2-local',
107+
* 'verified' => '0',
108+
* 'verificationData' => '',
109+
* ],
110+
* ],
111+
* ]`
112+
*
79113
* @since 24.0.0
80114
*/
81115
public function setAllPropertiesFromJson(array $properties): IAccount;

0 commit comments

Comments
 (0)