PHP Class Kahlan\Jit\Patcher\Rebase

Show file 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, string $path ) Helper for Rebase::process().

Method Details

_processTree() protected method

Helper for Rebase::process().
protected _processTree ( array $parent, string $path )
$parent array The node instance tor process.
$path string The file path of the source code.

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.