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

23 lines
411 B
PHP
Raw Normal View History

<?php declare(strict_types=1);
namespace PhpParser\Lexer\TokenEmulator;
use PhpParser\Lexer\Emulative;
final class FnTokenEmulator 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_7_4;
}
public function getKeywordString(): string
2020-08-01 21:49:53 +02:00
{
return 'fn';
}
public function getKeywordToken(): int
{
2020-08-01 22:34:36 +02:00
return \T_FN;
}
}