PHP Class Naneau\Obfuscator\Node\Visitor\ScramblePrivateMethod

Renames private methods WARNING This method is not foolproof. This visitor scans for all private method declarations and renames them. It then finds *all* method calls in the class, and renames them if they match the name of a renamed method. If your class calls a method of *another* class that happens to match one of the renamed private methods, this visitor will rename it.
Inheritance: extends Naneau\Obfuscator\Node\Visitor\Scrambler, use trait Naneau\Obfuscator\Node\Visitor\TrackingRenamerTrait, use trait Naneau\Obfuscator\Node\Visitor\SkipTrait
Datei anzeigen Open project: naneau/php-obfuscator

Public Methods

Method Description
beforeTraverse ( array $nodes ) : array Before node traversal
enterNode ( PhpParser\Node $node ) : void Check all variable nodes

Private Methods

Method Description
scanMethodDefinitions ( array $nodes ) : void Recursively scan for private method definitions and rename them
variableMethodCallsUsed ( array $nodes ) : void Recursively scan for method calls and see if variables are used

Method Details

beforeTraverse() public method

Before node traversal
public beforeTraverse ( array $nodes ) : array
$nodes array
return array

enterNode() public method

Check all variable nodes
public enterNode ( PhpParser\Node $node ) : void
$node PhpParser\Node
return void