1313namespace Webklex \PHPIMAP \Query ;
1414
1515use Carbon \Carbon ;
16+ use Illuminate \Pagination \LengthAwarePaginator ;
17+ use Illuminate \Support \Collection ;
1618use Webklex \PHPIMAP \Client ;
1719use Webklex \PHPIMAP \ClientManager ;
1820use Webklex \PHPIMAP \Exceptions \ConnectionFailedException ;
1921use Webklex \PHPIMAP \Exceptions \GetMessagesFailedException ;
22+ use Webklex \PHPIMAP \Exceptions \InvalidMessageDateException ;
23+ use Webklex \PHPIMAP \Exceptions \MessageContentFetchingException ;
24+ use Webklex \PHPIMAP \Exceptions \MessageHeaderFetchingException ;
2025use Webklex \PHPIMAP \Exceptions \MessageSearchValidationException ;
2126use Webklex \PHPIMAP \Exceptions \RuntimeException ;
2227use 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 ();
0 commit comments