Skip to content

Commit 36804ef

Browse files
committed
Comments updated
1 parent bf37120 commit 36804ef

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

src/IMAP/Client.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ public function isReadOnly() {
169169

170170
/**
171171
* Determine if connection was established and connect if not.
172+
*
173+
* @throws ConnectionFailedException
172174
*/
173175
public function checkConnection() {
174176
if (!$this->isConnected()) {
@@ -252,6 +254,7 @@ public function getFolder($folder_name, $attributes = 32, $delimiter = null){
252254
* @param null $parent_folder
253255
*
254256
* @return FolderCollection
257+
* @throws ConnectionFailedException
255258
*/
256259
public function getFolders($hierarchical = true, $parent_folder = null) {
257260
$this->checkConnection();
@@ -279,8 +282,10 @@ public function getFolders($hierarchical = true, $parent_folder = null) {
279282
/**
280283
* Open folder.
281284
*
282-
* @param Folder $folder
283-
* @param integer $attempts
285+
* @param Folder $folder
286+
* @param int $attempts
287+
*
288+
* @throws ConnectionFailedException
284289
*/
285290
public function openFolder(Folder $folder, $attempts = 3) {
286291
$this->checkConnection();
@@ -312,6 +317,7 @@ public function createFolder($name){
312317
* @param boolean $parse_body
313318
*
314319
* @return MessageCollection
320+
* @throws ConnectionFailedException
315321
* @throws GetMessagesFailedException
316322
* @throws MessageSearchValidationException
317323
*
@@ -331,6 +337,7 @@ public function getMessages(Folder $folder, $criteria = 'ALL', $fetch_options =
331337
* @param bool $parse_body
332338
*
333339
* @return MessageCollection
340+
* @throws ConnectionFailedException
334341
* @throws GetMessagesFailedException
335342
* @throws MessageSearchValidationException
336343
*
@@ -351,6 +358,7 @@ public function getUnseenMessages(Folder $folder, $criteria = 'UNSEEN', $fetch_o
351358
* @param string $charset
352359
*
353360
* @return MessageCollection
361+
* @throws ConnectionFailedException
354362
* @throws GetMessagesFailedException
355363
* @throws MessageSearchValidationException
356364
*

src/IMAP/ClientManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct($app) {
4545
*
4646
* @param string $name
4747
*
48-
* @return \Webklex\IMAP\Client
48+
* @return Client
4949
*/
5050
public function account($name = null) {
5151
$name = $name ?: $this->getDefaultAccount();
@@ -65,7 +65,7 @@ public function account($name = null) {
6565
*
6666
* @param string $name
6767
*
68-
* @return \Webklex\IMAP\Client
68+
* @return Client
6969
*/
7070
protected function resolve($name) {
7171
$config = $this->getConfig($name);

src/IMAP/Folder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public function getMessage($uid, $msglist = null){
169169
* @param bool $parse_body
170170
*
171171
* @return MessageCollection
172+
* @throws Exceptions\ConnectionFailedException
172173
* @throws GetMessagesFailedException
173174
* @throws MessageSearchValidationException
174175
*/
@@ -184,6 +185,7 @@ public function getMessages($criteria = 'ALL', $fetch_options = null, $parse_bod
184185
* @param bool $parse_body
185186
*
186187
* @return MessageCollection
188+
* @throws Exceptions\ConnectionFailedException
187189
* @throws GetMessagesFailedException
188190
* @throws MessageSearchValidationException
189191
*
@@ -209,12 +211,13 @@ public function getUnseenMessages($criteria = 'UNSEEN', $fetch_options = null, $
209211
* The following sample would search for all flagged messages:
210212
* [['FLAGGED']]
211213
* ---------------------------------------------------------------------------------------
212-
* @param Folder $folder
213214
* @param null $fetch_options
214215
* @param boolean $parse_body
215216
* @param string $charset
216217
*
217218
* @return MessageCollection
219+
*
220+
* @throws Exceptions\ConnectionFailedException
218221
* @throws GetMessagesFailedException
219222
* @throws MessageSearchValidationException
220223
*
@@ -252,7 +255,6 @@ public function getUnseenMessages($criteria = 'UNSEEN', $fetch_options = null, $
252255
* ; M:-12; N:+1; Y:+12
253256
* / ( ("+" / "-") 4DIGIT ) ; Local differential
254257
* ; hours+min. (HHMM)
255-
*
256258
*/
257259
public function searchMessages(array $where, $fetch_options = null, $parse_body = true, $charset = "UTF-8") {
258260

src/IMAP/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Message {
2525
/**
2626
* Client instance
2727
*
28-
* @var \Webklex\IMAP\Client
28+
* @var Client
2929
*/
3030
private $client = Client::class;
3131

0 commit comments

Comments
 (0)