2019-05-09 14:17:28 +02:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace PhpParser\Lexer\TokenEmulator;
|
|
|
|
|
|
|
|
use PhpParser\Lexer\Emulative;
|
|
|
|
|
2020-08-01 22:02:52 +02:00
|
|
|
final class FnTokenEmulator extends KeywordEmulator
|
2019-05-09 14:17:28 +02:00
|
|
|
{
|
2020-08-01 21:49:53 +02:00
|
|
|
public function getPhpVersion(): string
|
2019-05-09 14:17:28 +02:00
|
|
|
{
|
2020-08-01 21:49:53 +02:00
|
|
|
return Emulative::PHP_7_4;
|
|
|
|
}
|
2019-05-09 14:17:28 +02:00
|
|
|
|
2020-08-01 22:02:52 +02:00
|
|
|
public function getKeywordString(): string
|
2020-08-01 21:49:53 +02:00
|
|
|
{
|
2020-08-01 22:02:52 +02:00
|
|
|
return 'fn';
|
2019-05-09 14:17:28 +02:00
|
|
|
}
|
|
|
|
|
2020-08-01 22:02:52 +02:00
|
|
|
public function getKeywordToken(): int
|
2019-05-09 14:17:28 +02:00
|
|
|
{
|
2020-08-01 22:02:52 +02:00
|
|
|
return Emulative::T_FN;
|
2019-05-09 14:17:28 +02:00
|
|
|
}
|
2020-08-01 22:02:52 +02:00
|
|
|
}
|