mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 01:27:30 +01:00
15 lines
306 B
PHP
15 lines
306 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Lexer\TokenEmulator;
|
|
|
|
/** @internal */
|
|
interface TokenEmulatorInterface
|
|
{
|
|
public function isEmulationNeeded(string $code): bool;
|
|
|
|
/**
|
|
* @return array Modified Tokens
|
|
*/
|
|
public function emulate(string $code, array $tokens): array;
|
|
}
|