File tree Expand file tree Collapse file tree 2 files changed +17
-18
lines changed
Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 55/**
66 * @see https://datatracker.ietf.org/doc/html/rfc9051#name-atom
77 */
8- class Atom extends Token
9- {
10- /**
11- * Determine if the token is the given value.
12- */
13- public function is (string $ value ): bool
14- {
15- return $ this ->value === $ value ;
16- }
17-
18- /**
19- * Determine if the token is not the given value.
20- */
21- public function isNot (string $ value ): bool
22- {
23- return ! $ this ->is ($ value );
24- }
25- }
8+ class Atom extends Token {}
Original file line number Diff line number Diff line change @@ -13,6 +13,22 @@ public function __construct(
1313 public string $ value ,
1414 ) {}
1515
16+ /**
17+ * Determine if the token is the given value.
18+ */
19+ public function is (string $ value ): bool
20+ {
21+ return $ this ->value === $ value ;
22+ }
23+
24+ /**
25+ * Determine if the token is not the given value.
26+ */
27+ public function isNot (string $ value ): bool
28+ {
29+ return ! $ this ->is ($ value );
30+ }
31+
1632 /**
1733 * Get the token's value.
1834 */
You can’t perform that action at this time.
0 commit comments