vendor/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/PropertyTokenEmulator.php
raw| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace PhpParser\Lexer\TokenEmulator; |
| 4 | |
| 5 | use PhpParser\PhpVersion; |
| 6 | |
| 7 | final class PropertyTokenEmulator extends KeywordEmulator { |
| 8 | public function getPhpVersion(): PhpVersion { |
| 9 | return PhpVersion::fromComponents(8, 4); |
| 10 | } |
| 11 | |
| 12 | public function getKeywordString(): string { |
| 13 | return '__property__'; |
| 14 | } |
| 15 | |
| 16 | public function getKeywordToken(): int { |
| 17 | return \T_PROPERTY_C; |
| 18 | } |
| 19 | } |