MatchTokenEmulator.php 422 B

12345678910111213141516171819
  1. <?php declare(strict_types=1);
  2. namespace PhpParser\Lexer\TokenEmulator;
  3. use PhpParser\PhpVersion;
  4. final class MatchTokenEmulator extends KeywordEmulator {
  5. public function getPhpVersion(): PhpVersion {
  6. return PhpVersion::fromComponents(8, 0);
  7. }
  8. public function getKeywordString(): string {
  9. return 'match';
  10. }
  11. public function getKeywordToken(): int {
  12. return \T_MATCH;
  13. }
  14. }