PHP Class Kahlan\Jit\Patcher\Pointcut

Afficher le fichier Open project: crysalead/kahlan

Protected Properties

Свойство Type Description
$_classes array Class dependencies.
$_prefix string Prefix to use for custom variable name

Méthodes publiques

Méthode Description
__construct ( $config = [] ) The constructor.
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.

Méthodes protégées

Méthode Description
_before ( $generator ) : string. Before closure pattern.
_processMethods ( array $parent ) Helper for Pointcut::process().
_processTree ( array $parent ) Helper for Pointcut::process().

Method Details

__construct() public méthode

The constructor.
public __construct ( $config = [] )

_before() protected méthode

Before closure pattern.
protected _before ( $generator ) : string.
Résultat string.

_processMethods() protected méthode

Helper for Pointcut::process().
protected _processMethods ( array $parent )
$parent array The node instance tor process.

_processTree() protected méthode

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

findFile() public méthode

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.
Résultat string The patched file path.

patchable() public méthode

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

process() public méthode

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.
Résultat object The patched node.

Property Details

$_classes protected_oe property

Class dependencies.
protected array $_classes
Résultat array

$_prefix protected_oe property

Prefix to use for custom variable name
protected string $_prefix
Résultat string