1: <?php declare(strict_types=1);
2:
3: namespace PhpParser\Lexer\TokenEmulator;
4:
5: use PhpParser\PhpVersion;
6:
7: // Retained for reverse emulation support only.
8: final class FnTokenEmulator extends KeywordEmulator {
9: public function getPhpVersion(): PhpVersion {
10: return PhpVersion::fromString('7.4');
11: }
12:
13: public function getKeywordString(): string {
14: return 'fn';
15: }
16:
17: public function getKeywordToken(): int {
18: return \T_FN;
19: }
20: }
21: