PHP Class Kahlan\Jit\Patcher\Layer

Afficher le fichier Open project: crysalead/kahlan Class Usage Examples

Protected Properties

Свойство Type Description
$_classes array Class dependencies.
$_override array The fully namespeced class names to "layerize".
$_pointcut object The pointcut patcher
$_suffix string Suffix for Layer class.

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
_processTree ( array $parent ) Helper for Layer::process().

Method Details

__construct() public méthode

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

_processTree() protected méthode

Helper for Layer::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

$_override protected_oe property

The fully namespeced class names to "layerize".
protected array $_override
Résultat array

$_pointcut protected_oe property

The pointcut patcher
protected object $_pointcut
Résultat object

$_suffix protected_oe property

Suffix for Layer class.
protected string $_suffix
Résultat string