diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-08-22 16:26:28 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-08-22 16:26:28 +0300 |
commit | 940e5bef18e45250932340a97ba252c90161aad8 (patch) | |
tree | f0935acc8d33aa06ef4a93d861df993ba501a7f7 /lib/Account.php | |
parent | 4a276d548c2944d52a63ddf8e8cc70abc883798e (diff) |
Use JsonSerializable::jsonSerialize instead of a custom method
IAccount extends php's JsonSerialize interface which already comes
with a proper method that seralizes an object into an array. Hence
we shall use this method instead of duplicating and throwing an
exception in the implementation.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Account.php')
-rw-r--r-- | lib/Account.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Account.php b/lib/Account.php index 91282b233..6937ffbe2 100644 --- a/lib/Account.php +++ b/lib/Account.php @@ -354,7 +354,7 @@ class Account implements IAccount { * @return array */ public function jsonSerialize() { - throw new Exception('Not implemented'); + return $this->account->toJson(); } /** @@ -744,13 +744,6 @@ class Account implements IAccount { } /** - * @return array - */ - public function getConfiguration() { - return $this->account->toJson(); - } - - /** * @return string|Horde_Mail_Rfc822_List */ public function getEmail() { |