Property | Type | Description | |
---|---|---|---|
$_blacklist | array | Ignoring the following statements which are not valid function or class names. | |
$_counter | integer | Counter for building unique variable name. | |
$_depth | integer | Nested function depth level. | |
$_prefix | string | Prefix to use for custom variable name. | |
$_regex | string | The regex. | |
$_uses | array | Uses for the parsed node's namespace. | |
$_variables | array | Variables for the parsed node. |
Method | Description | |
---|---|---|
__construct ( $config = [] ) | The constructor. | |
blacklisted ( string $name = null ) : boolean | Check if a function is part of the blacklisted ones. | |
findFile ( object $loader, string $class, string $file ) : string | The JIT find file patcher. | |
patchable ( string $class ) : boolean | The JIT patchable checker. | |
process ( object $node, string $path = null ) : object | The JIT patcher. |
Method | Description | |
---|---|---|
_addClosingParenthesis ( $pos, integer $index, array $parent ) : boolean | Add a closing parenthesis | |
_flushVariables ( array $node ) | Flush stored variables in the passed node. | |
_monkeyPatch ( object $node, array $parent, integer $index ) | Monkey patch a node body. | |
_processTree ( $parent ) | Helper for Monkey::process(). |
protected _flushVariables ( array $node ) | ||
$node | array | The node to store variables in. |
public static blacklisted ( string $name = null ) : boolean | ||
$name | string | A function name. |
return | boolean |
protected static array $_blacklist | ||
return | array |
protected int $_counter | ||
return | integer |
protected string $_prefix | ||
return | string |
protected array $_variables | ||
return | array |