Property | Type | Description | |
---|---|---|---|
$sandbox | The PHPSandbox instance to check against |
Method | Description | |
---|---|---|
__construct ( |
ValidatorVisitor class constructor | |
leaveNode ( PhpParser\Node $node ) : PhpParser\Node | boolean | null | Examine the current PhpParser_Node node against the PHPSandbox configuration for validating sandboxed code |
Method | Description | |
---|---|---|
isKeyword ( PhpParser\Node $node ) : string | null | Test the current PhpParser_Node node to see if it is a keyword, and return the name if it is and null if it is not | |
isMagicConst ( PhpParser\Node $node ) : string | null | Test the current PhpParser_Node node to see if it is a magic constant, and return the name if it is and null if it is not | |
isOperator ( PhpParser\Node $node ) : string | null | Test the current PhpParser_Node node to see if it is an operator, and return the name if it is and null if it is not | |
isPrimitive ( PhpParser\Node $node ) : string | null | Test the current PhpParser_Node node to see if it is a primitive, and return the name if it is and null if it is not |
public __construct ( |
||
$sandbox | The PHPSandbox instance to check against |
protected isMagicConst ( PhpParser\Node $node ) : string | null | ||
$node | PhpParser\Node | The sandboxed $node to test |
return | string | null | Return string name of node, or null if it is not a magic constant |
protected isOperator ( PhpParser\Node $node ) : string | null | ||
$node | PhpParser\Node | The sandboxed $node to test |
return | string | null | Return string name of node, or null if it is not an operator |
protected isPrimitive ( PhpParser\Node $node ) : string | null | ||
$node | PhpParser\Node | The sandboxed $node to test |
return | string | null | Return string name of node, or null if it is not a primitive |