PHP Class Kahlan\Jit\Patcher\Quit

Datei anzeigen Open project: crysalead/kahlan

Public Methods

Method Description
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.

Protected Methods

Method Description
_processTree ( array $parent ) Helper for Quit::process().

Method Details

_processTree() protected method

Helper for Quit::process().
protected _processTree ( array $parent )
$parent array The node instance tor process.

findFile() public method

The JIT find file patcher.
public findFile ( object $loader, string $class, string $file ) : string
$loader object The autloader instance.
$class string The fully-namespaced class name.
$file string The correponding finded file path.
return string The patched file path.

patchable() public method

The JIT patchable checker.
public patchable ( string $class ) : boolean
$class string The fully-namespaced class name to check.
return boolean

process() public method

The JIT patcher.
public process ( object $node, string $path = null ) : object
$node object The node instance to patch.
$path string The file path of the source code.
return object The patched node.