Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7399487
TokenEmulator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
615 B
Referenced Files
None
Subscribers
None
TokenEmulator.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
PhpParser\Lexer\TokenEmulator
;
/** @internal */
abstract
class
TokenEmulator
{
abstract
public
function
getPhpVersion
():
string
;
abstract
public
function
isEmulationNeeded
(
string
$code
):
bool
;
/**
* @return array Modified Tokens
*/
abstract
public
function
emulate
(
string
$code
,
array
$tokens
):
array
;
/**
* @return array Modified Tokens
*/
abstract
public
function
reverseEmulate
(
string
$code
,
array
$tokens
):
array
;
public
function
preprocessCode
(
string
$code
,
array
&
$patches
):
string
{
return
$code
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 16:03 (7 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
df/8c/ab300081f4210e91a9fa429daa71
Default Alt Text
TokenEmulator.php (615 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment