33namespace DirectoryTree \ImapEngine \Connection ;
44
55use DirectoryTree \ImapEngine \Connection \Responses \UntaggedResponse ;
6- use DirectoryTree \ImapEngine \Imap ;
76use RuntimeException ;
87
98/**
@@ -121,47 +120,47 @@ public function capability(): UntaggedResponse
121120 /**
122121 * {@inheritDoc}
123122 */
124- public function selectFolder (string $ folder = 'INBOX ' ): ResponseCollection
123+ public function select (string $ folder = 'INBOX ' ): ResponseCollection
125124 {
126125 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
127126 }
128127
129128 /**
130129 * {@inheritDoc}
131130 */
132- public function examineFolder (string $ folder = 'INBOX ' ): ResponseCollection
131+ public function examine (string $ folder = 'INBOX ' ): ResponseCollection
133132 {
134133 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
135134 }
136135
137136 /**
138137 * {@inheritDoc}
139138 */
140- public function folderStatus (string $ folder = 'INBOX ' , array $ arguments = ['MESSAGES ' , 'UNSEEN ' , 'RECENT ' , 'UIDNEXT ' , 'UIDVALIDITY ' ]): ResponseCollection
139+ public function status (string $ folder = 'INBOX ' , array $ arguments = ['MESSAGES ' , 'UNSEEN ' , 'RECENT ' , 'UIDNEXT ' , 'UIDVALIDITY ' ]): ResponseCollection
141140 {
142141 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
143142 }
144143
145144 /**
146145 * {@inheritDoc}
147146 */
148- public function uids (int |array $ msgns ): ResponseCollection
147+ public function uid (int |array $ msgns ): ResponseCollection
149148 {
150149 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
151150 }
152151
153152 /**
154153 * {@inheritDoc}
155154 */
156- public function contents (array |int $ ids ): ResponseCollection
155+ public function text (array |int $ ids ): ResponseCollection
157156 {
158157 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
159158 }
160159
161160 /**
162161 * {@inheritDoc}
163162 */
164- public function headers (array |int $ ids ): ResponseCollection
163+ public function header (array |int $ ids ): ResponseCollection
165164 {
166165 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
167166 }
@@ -185,7 +184,7 @@ public function sizes(array|int $ids): ResponseCollection
185184 /**
186185 * {@inheritDoc}
187186 */
188- public function folders (string $ reference = '' , string $ folder = '* ' ): ResponseCollection
187+ public function list (string $ reference = '' , string $ folder = '* ' ): ResponseCollection
189188 {
190189 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
191190 }
@@ -201,15 +200,15 @@ public function store(array|string $flags, int $from, ?int $to = null, ?string $
201200 /**
202201 * {@inheritDoc}
203202 */
204- public function appendMessage (string $ folder , string $ message , ?array $ flags = null , ?string $ date = null ): ResponseCollection
203+ public function append (string $ folder , string $ message , ?array $ flags = null , ?string $ date = null ): ResponseCollection
205204 {
206205 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
207206 }
208207
209208 /**
210209 * {@inheritDoc}
211210 */
212- public function copyMessage (string $ folder , $ from , ?int $ to = null ): ResponseCollection
211+ public function copy (string $ folder , $ from , ?int $ to = null ): ResponseCollection
213212 {
214213 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
215214 }
@@ -225,7 +224,7 @@ public function copyManyMessages(array $messages, string $folder): ResponseColle
225224 /**
226225 * {@inheritDoc}
227226 */
228- public function moveMessage (string $ folder , $ from , ?int $ to = null ): ResponseCollection
227+ public function move (string $ folder , $ from , ?int $ to = null ): ResponseCollection
229228 {
230229 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
231230 }
@@ -249,39 +248,39 @@ public function id(?array $ids = null): ResponseCollection
249248 /**
250249 * {@inheritDoc}
251250 */
252- public function createFolder (string $ folder ): ResponseCollection
251+ public function create (string $ folder ): ResponseCollection
253252 {
254253 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
255254 }
256255
257256 /**
258257 * {@inheritDoc}
259258 */
260- public function renameFolder (string $ oldPath , string $ newPath ): ResponseCollection
259+ public function rename (string $ oldPath , string $ newPath ): ResponseCollection
261260 {
262261 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
263262 }
264263
265264 /**
266265 * {@inheritDoc}
267266 */
268- public function deleteFolder (string $ folder ): ResponseCollection
267+ public function delete (string $ folder ): ResponseCollection
269268 {
270269 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
271270 }
272271
273272 /**
274273 * {@inheritDoc}
275274 */
276- public function subscribeFolder (string $ folder ): ResponseCollection
275+ public function subscribe (string $ folder ): ResponseCollection
277276 {
278277 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
279278 }
280279
281280 /**
282281 * {@inheritDoc}
283282 */
284- public function unsubscribeFolder (string $ folder ): ResponseCollection
283+ public function unsubscribe (string $ folder ): ResponseCollection
285284 {
286285 return $ this ->getExpectationResponse (__FUNCTION__ , func_get_args ()) ?? ResponseCollection::make ();
287286 }
0 commit comments