We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 412b545 commit cdead2fCopy full SHA for cdead2f
src/Connection/Tokens/Atom.php
@@ -2,4 +2,21 @@
2
3
namespace DirectoryTree\ImapEngine\Connection\Tokens;
4
5
-class Atom extends Token {}
+class Atom extends Token
6
+{
7
+ /**
8
+ * Determine if the token is the given value.
9
+ */
10
+ public function is(string $value): bool
11
+ {
12
+ return $this->value === $value;
13
+ }
14
+
15
16
+ * Determine if the token is not the given value.
17
18
+ public function isNot(string $value): bool
19
20
+ return ! $this->is($value);
21
22
+}
0 commit comments