@@ -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 *
0 commit comments