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>2020-10-09 11:21:03 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-09 11:30:55 +0300
commit0a1e1ad8bc46bb4d4b0846b840cd6b8a4ff3c408 (patch)
treeca6e6906eeaa390bd334152d9c4915c7b3bd4701 /lib/Contracts
parent374e9fbbae219635168b3fab0a53a1c056db7ab4 (diff)
Fix more type and nullable errors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IAvatarService.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Contracts/IAvatarService.php b/lib/Contracts/IAvatarService.php
index a97a80da1..cd4f197d7 100644
--- a/lib/Contracts/IAvatarService.php
+++ b/lib/Contracts/IAvatarService.php
@@ -26,16 +26,18 @@ declare(strict_types=1);
namespace OCA\Mail\Contracts;
+use OCA\Mail\Service\Avatar\Avatar;
+
interface IAvatarService {
/**
- * Try to find an avatar URL for the given email address
+ * Try to find an avatar for the given email address
*
* @param string $email
* @param string $uid
- * @return string|null URL, if one can be found
+ * @return Avatar|null
*/
- public function getAvatar(string $email, string $uid);
+ public function getAvatar(string $email, string $uid): ?Avatar;
/**
* @param string $email