Skip to content

Commit 7e929d5

Browse files
committed
Folder::query() alias doc and example added
1 parent 9e2a57a commit 7e929d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ $aMessage = $oFolder->query()->unseen()->text('hello world')->get();
220220
//Extended custom search query for all messages containing "hello world" and have been received since march 15 2018
221221
/** @var \Webklex\IMAP\Support\MessageCollection $aMessage */
222222
$aMessage = $oFolder->query()->text('hello world')->since('15.03.2018')->get();
223+
$aMessage = $oFolder->search()->text('hello world')->since('15.03.2018')->get();
224+
$aMessage = $oFolder->messages()->text('hello world')->since('15.03.2018')->get();
225+
223226
$aMessage = $oFolder->query()->Text('hello world')->Since('15.03.2018')->get();
224227
$aMessage = $oFolder->query()->whereText('hello world')->whereSince('15.03.2018')->get();
225228
$aMessage = $oFolder->query()->where([['TEXT', 'Hello world'], ['SINCE', \Carbon::parse('15.03.2018')]])->get();
@@ -468,6 +471,8 @@ if you're just wishing a feature ;)
468471
| appendMessage | string $message, string $options, string $internal_date | bool | Append a string message to the current mailbox |
469472
| getClient | | Client | Get the current Client instance |
470473
| query | string $charset = 'UTF-8' | WhereQuery | Get the current Client instance |
474+
| messages | string $charset = 'UTF-8' | WhereQuery | Alias for Folder::query() |
475+
| search | string $charset = 'UTF-8' | WhereQuery | Alias for Folder::query() |
471476
472477
### [Query::class](src/IMAP/WhereQuery.php)
473478
| Method | Arguments | Return | Description |

0 commit comments

Comments
 (0)