mirror of
https://github.com/nextcloud/server.git
synced 2025-03-18 02:03:18 +00:00
Add example to DocBlock
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
2d9d0702f0
commit
c505bb1449
1 changed files with 34 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue