Skip to content

Commit a8bdaca

Browse files
committed
Comments updated
1 parent 3138fa7 commit a8bdaca

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/Query/Query.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@
1313
namespace Webklex\PHPIMAP\Query;
1414

1515
use Carbon\Carbon;
16+
use Illuminate\Pagination\LengthAwarePaginator;
17+
use Illuminate\Support\Collection;
1618
use Webklex\PHPIMAP\Client;
1719
use Webklex\PHPIMAP\ClientManager;
1820
use Webklex\PHPIMAP\Exceptions\ConnectionFailedException;
1921
use Webklex\PHPIMAP\Exceptions\GetMessagesFailedException;
22+
use Webklex\PHPIMAP\Exceptions\InvalidMessageDateException;
23+
use Webklex\PHPIMAP\Exceptions\MessageContentFetchingException;
24+
use Webklex\PHPIMAP\Exceptions\MessageHeaderFetchingException;
2025
use Webklex\PHPIMAP\Exceptions\MessageSearchValidationException;
2126
use Webklex\PHPIMAP\Exceptions\RuntimeException;
2227
use Webklex\PHPIMAP\IMAP;
@@ -142,7 +147,7 @@ public function markAsRead() {
142147
/**
143148
* Perform an imap search request
144149
*
145-
* @return \Illuminate\Support\Collection
150+
* @return Collection
146151
* @throws GetMessagesFailedException
147152
*/
148153
protected function search(){
@@ -228,9 +233,9 @@ public function get() {
228233
* @return Message
229234
* @throws ConnectionFailedException
230235
* @throws RuntimeException
231-
* @throws \Webklex\PHPIMAP\Exceptions\InvalidMessageDateException
232-
* @throws \Webklex\PHPIMAP\Exceptions\MessageContentFetchingException
233-
* @throws \Webklex\PHPIMAP\Exceptions\MessageHeaderFetchingException
236+
* @throws InvalidMessageDateException
237+
* @throws MessageContentFetchingException
238+
* @throws MessageHeaderFetchingException
234239
*/
235240
public function getMessage($msgno, $msglist = null){
236241
return new Message($msgno, $msglist, $this->getClient(), $this->getFetchOptions(), $this->getFetchBody(), $this->getFetchFlags());
@@ -242,7 +247,7 @@ public function getMessage($msgno, $msglist = null){
242247
* @param null $page
243248
* @param string $page_name
244249
*
245-
* @return \Illuminate\Pagination\LengthAwarePaginator
250+
* @return LengthAwarePaginator
246251
* @throws GetMessagesFailedException
247252
*/
248253
public function paginate($per_page = 5, $page = null, $page_name = 'imap_page'){
@@ -291,7 +296,7 @@ public function generate_query() {
291296

292297
/**
293298
* @return Client
294-
* @throws \Webklex\PHPIMAP\Exceptions\ConnectionFailedException
299+
* @throws ConnectionFailedException
295300
*/
296301
public function getClient() {
297302
$this->client->checkConnection();

src/Query/WhereQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* Class WhereQuery
2222
*
23-
* @package Webklex\IMAP\Query
23+
* @package Webklex\PHPIMAP\Query
2424
*
2525
* @method WhereQuery all()
2626
* @method WhereQuery answered()

0 commit comments

Comments
 (0)