php-parser/lib/PhpParser/Lexer/TokenEmulator/AwaitTokenEmulator.php
2021-12-15 14:09:31 +01:00

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;
}
}