php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php

24 lines
421 B
PHP
Raw Permalink Normal View History

<?php declare(strict_types=1);
namespace PhpParser\Lexer\TokenEmulator;
use PhpParser\Lexer\Emulative;
final class MatchTokenEmulator extends KeywordEmulator
{
2020-08-01 21:49:53 +02:00
public function getPhpVersion(): string
{
2020-08-01 21:49:53 +02:00
return Emulative::PHP_8_0;
}
public function getKeywordString(): string
2020-08-01 21:49:53 +02:00
{
return 'match';
}
public function getKeywordToken(): int
{
2020-08-01 22:34:36 +02:00
return \T_MATCH;
}
}