1<?php declare(strict_types=1); 2 3namespace PhpParser\Lexer\TokenEmulator; 4 5/** @internal */ 6interface TokenEmulatorInterface 7{ 8 public function isEmulationNeeded(string $code): bool; 9 10 /** 11 * @return array Modified Tokens 12 */ 13 public function emulate(string $code, array $tokens): array; 14} 15