1111use Illuminate \Support \ItemNotFoundException ;
1212use JsonSerializable ;
1313
14- class Folder implements Arrayable, JsonSerializable
14+ class Folder implements Arrayable, FolderInterface, JsonSerializable
1515{
1616 /**
1717 * The folder's cached capabilities.
@@ -55,33 +55,33 @@ public function flags(): array
5555 }
5656
5757 /**
58- * Get the folder delimiter.
58+ * {@inheritDoc}
5959 */
6060 public function delimiter (): string
6161 {
6262 return $ this ->delimiter ;
6363 }
6464
6565 /**
66- * Get the folder name.
66+ * {@inheritDoc}
6767 */
6868 public function name (): string
6969 {
7070 return last (explode ($ this ->delimiter , $ this ->path ));
7171 }
7272
7373 /**
74- * Determine if the folder is the same as the given folder.
74+ * {@inheritDoc}
7575 */
76- public function is (Folder $ folder ): bool
76+ public function is (FolderInterface $ folder ): bool
7777 {
78- return $ this ->path === $ folder ->path
79- && $ this ->mailbox ->config ('host ' ) === $ folder ->mailbox ->config ('host ' )
80- && $ this ->mailbox ->config ('username ' ) === $ folder ->mailbox ->config ('username ' );
78+ return $ this ->path === $ folder ->path ()
79+ && $ this ->mailbox ->config ('host ' ) === $ folder ->mailbox () ->config ('host ' )
80+ && $ this ->mailbox ->config ('username ' ) === $ folder ->mailbox () ->config ('username ' );
8181 }
8282
8383 /**
84- * Begin querying for messages.
84+ * {@inheritDoc}
8585 */
8686 public function messages (): MessageQuery
8787 {
@@ -92,7 +92,7 @@ public function messages(): MessageQuery
9292 }
9393
9494 /**
95- * Begin idling on the current folder.
95+ * {@inheritDoc}
9696 */
9797 public function idle (callable $ callback , ?callable $ query = null , int $ timeout = 300 ): void
9898 {
@@ -134,7 +134,7 @@ function (int $msgn) use ($callback, $fetch) {
134134 }
135135
136136 /**
137- * Move or rename the current folder.
137+ * {@inheritDoc}
138138 */
139139 public function move (string $ newPath ): void
140140 {
@@ -144,15 +144,15 @@ public function move(string $newPath): void
144144 }
145145
146146 /**
147- * Select the current folder.
147+ * {@inheritDoc}
148148 */
149149 public function select (bool $ force = false ): void
150150 {
151151 $ this ->mailbox ->select ($ this , $ force );
152152 }
153153
154154 /**
155- * Get the folder's status.
155+ * {@inheritDoc}
156156 */
157157 public function status (): array
158158 {
@@ -171,7 +171,7 @@ public function status(): array
171171 }
172172
173173 /**
174- * Examine the current folder and get detailed status information.
174+ * {@inheritDoc}
175175 */
176176 public function examine (): array
177177 {
@@ -181,7 +181,7 @@ public function examine(): array
181181 }
182182
183183 /**
184- * Expunge the mailbox and return the expunged message sequence numbers.
184+ * {@inheritDoc}
185185 */
186186 public function expunge (): array
187187 {
@@ -191,7 +191,7 @@ public function expunge(): array
191191 }
192192
193193 /**
194- * Delete the current folder.
194+ * {@inheritDoc}
195195 */
196196 public function delete (): void
197197 {
0 commit comments