1: | <?php declare(strict_types=1); |
2: | |
3: | namespace PhpParser\Lexer\TokenEmulator; |
4: | |
5: | use PhpParser\Lexer\Emulative; |
6: | |
7: | final class MatchTokenEmulator extends KeywordEmulator |
8: | { |
9: | public function getPhpVersion(): string |
10: | { |
11: | return Emulative::PHP_8_0; |
12: | } |
13: | |
14: | public function getKeywordString(): string |
15: | { |
16: | return 'match'; |
17: | } |
18: | |
19: | public function getKeywordToken(): int |
20: | { |
21: | return \T_MATCH; |
22: | } |
23: | } |
24: |