Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7420622
ReverseEmulator.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
967 B
Referenced Files
None
Subscribers
None
ReverseEmulator.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
PhpParser\Lexer\TokenEmulator
;
/**
* Reverses emulation direction of the inner emulator.
*/
final
class
ReverseEmulator
extends
TokenEmulator
{
/** @var TokenEmulator Inner emulator */
private
$emulator
;
public
function
__construct
(
TokenEmulator
$emulator
)
{
$this
->
emulator
=
$emulator
;
}
public
function
getPhpVersion
():
string
{
return
$this
->
emulator
->
getPhpVersion
();
}
public
function
isEmulationNeeded
(
string
$code
):
bool
{
return
$this
->
emulator
->
isEmulationNeeded
(
$code
);
}
public
function
emulate
(
string
$code
,
array
$tokens
):
array
{
return
$this
->
emulator
->
reverseEmulate
(
$code
,
$tokens
);
}
public
function
reverseEmulate
(
string
$code
,
array
$tokens
):
array
{
return
$this
->
emulator
->
emulate
(
$code
,
$tokens
);
}
public
function
preprocessCode
(
string
$code
,
array
&
$patches
):
string
{
return
$code
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 05:04 (1 d, 18 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
29/24/055528c49566c1fac7f24abe9645
Default Alt Text
ReverseEmulator.php (967 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment