mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-04 10:28:18 +01:00
24 lines
428 B
PHP
24 lines
428 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Lexer\TokenEmulator;
|
|
|
|
use PhpParser\Lexer\Emulative;
|
|
|
|
final class AwaitTokenEmulator extends KeywordEmulator
|
|
{
|
|
public function getPhpVersion(): string
|
|
{
|
|
return Emulative::PHP_UNOBTANIUM;
|
|
}
|
|
|
|
public function getKeywordString(): string
|
|
{
|
|
return 'await';
|
|
}
|
|
|
|
public function getKeywordToken(): int
|
|
{
|
|
return \T_YIELD;
|
|
}
|
|
}
|