diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-03-08 03:49:00 +0300 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-17 19:33:19 +0300 |
commit | 2d9d0702f00410c5868482c0017fc93a06eaef90 (patch) | |
tree | 4ebe2bdf58abd10c6c08bd32ee2b3f3236aceff3 /lib/public | |
parent | 2a75c303b5ce01f809866a0afb326663b9f9d125 (diff) |
Add method to set all account properties from json
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Accounts/IAccount.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/Accounts/IAccount.php b/lib/public/Accounts/IAccount.php index 8d4d8b5c023..dcec17f9363 100644 --- a/lib/public/Accounts/IAccount.php +++ b/lib/public/Accounts/IAccount.php @@ -72,6 +72,15 @@ interface IAccount extends \JsonSerializable { public function getProperties(): array; /** + * Set all properties of an account + * + * @param array<string, array<string, string>>|array<string, array<int, array<string, string>>> $properties + * + * @since 24.0.0 + */ + public function setAllPropertiesFromJson(array $properties): IAccount; + + /** * Get all properties of an account. Array indices are numeric. To get * the property name, call getName() against the value. * |