Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-08-22 16:26:28 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-08-22 16:26:28 +0300
commit940e5bef18e45250932340a97ba252c90161aad8 (patch)
treef0935acc8d33aa06ef4a93d861df993ba501a7f7 /lib/Account.php
parent4a276d548c2944d52a63ddf8e8cc70abc883798e (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.php9
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() {