Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | declare(strict_types=1); | ||||
4 | |||||
5 | namespace Ddeboer\Imap\Search\State; | ||||
6 | |||||
7 | use Ddeboer\Imap\Search\ConditionInterface; | ||||
8 | |||||
9 | /** | ||||
10 | * Represents a NEW condition. Only new messages will match this condition. | ||||
11 | */ | ||||
12 | final class NewMessage implements ConditionInterface | ||||
13 | { | ||||
14 | /** | ||||
15 | * Returns the keyword that the condition represents. | ||||
16 | */ | ||||
17 | public function toString(): string | ||||
18 | { | ||||
19 | return 'NEW'; | ||||
20 | } | ||||
21 | } |