mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-11 16:49:43 +01:00
24 lines
421 B
PHP
24 lines
421 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Lexer\TokenEmulator;
|
|
|
|
use PhpParser\Lexer\Emulative;
|
|
|
|
final class MatchTokenEmulator extends KeywordEmulator
|
|
{
|
|
public function getPhpVersion(): string
|
|
{
|
|
return Emulative::PHP_8_0;
|
|
}
|
|
|
|
public function getKeywordString(): string
|
|
{
|
|
return 'match';
|
|
}
|
|
|
|
public function getKeywordToken(): int
|
|
{
|
|
return \T_MATCH;
|
|
}
|
|
}
|