diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-07-24 11:22:58 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-07-24 11:22:58 +0300 |
commit | db752f41f2f8f1f4b7477093b27e7a845dcf6090 (patch) | |
tree | 4ed8aa5616db645eac3b66faf2a197b1b2345a8b /lib/Contracts | |
parent | 1d17898cdd788346e89ebee355cccf9d2f0c1eac (diff) |
Make IMailManager strict
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r-- | lib/Contracts/IMailManager.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Contracts/IMailManager.php b/lib/Contracts/IMailManager.php index d1339377e..20c9bb3d8 100644 --- a/lib/Contracts/IMailManager.php +++ b/lib/Contracts/IMailManager.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + /** * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @@ -32,14 +34,14 @@ interface IMailManager { * @param Account $account * @return Folder[] */ - public function getFolders(Account $account); + public function getFolders(Account $account): array; /** * @param Account * @param SyncRequest $syncRequest * @return SyncResponse */ - public function syncMessages(Account $account, SyncRequest $syncRequest); + public function syncMessages(Account $account, SyncRequest $syncRequest): SyncResponse; /** * @param Account $sourceAccount @@ -48,6 +50,6 @@ interface IMailManager { * @param Account $destinationAccount * @param string $destFolderId */ - public function moveMessage(Account $sourceAccount, $sourceFolderId, - $messageId, Account $destinationAccount, $destFolderId); + public function moveMessage(Account $sourceAccount, string $sourceFolderId, int $messageId, + Account $destinationAccount, string $destFolderId); } |