Свойство | Тип | Описание | |
---|---|---|---|
$currentClassStmts | |||
$currentMethodRelevant | |||
$dumper | |||
$factoryMethodStack |
Метод | Описание | |
---|---|---|
__construct ( |
The ctor needs a service for persistence of modified files | |
afterTraverse ( array $nodes ) | Writes modified files | |
enterNode ( PHPParser_Node $node ) | ||
leaveNode ( PHPParser_Node $node ) |
Метод | Описание | |
---|---|---|
enterClassNode ( PHPParser_Node_Stmt_Class $node ) | ||
enterInterfaceNode ( PHPParser_Node_Stmt_Interface $node ) | ||
enterNewInstance ( PHPParser_Node_Expr_New $node ) : PHPParser_Node_Expr_MethodCall | null | Enter in a new instance statement (only process "hard-coded" classname) | |
enterPublicMethodNode ( PHPParser_Node_Stmt_ClassMethod $node ) | ||
enterTraitNode ( PHPParser_Node_Stmt_Trait $node ) |
Метод | Описание | |
---|---|---|
getProcessedArgument ( array $args ) |
public __construct ( |
||
$callable |
public afterTraverse ( array $nodes ) | ||
$nodes | array |
protected enterClassNode ( PHPParser_Node_Stmt_Class $node ) | ||
$node | PHPParser_Node_Stmt_Class |
protected enterInterfaceNode ( PHPParser_Node_Stmt_Interface $node ) | ||
$node | PHPParser_Node_Stmt_Interface |
protected enterNewInstance ( PHPParser_Node_Expr_New $node ) : PHPParser_Node_Expr_MethodCall | null | ||
$node | PHPParser_Node_Expr_New | |
Результат | PHPParser_Node_Expr_MethodCall | null |
protected enterPublicMethodNode ( PHPParser_Node_Stmt_ClassMethod $node ) | ||
$node | PHPParser_Node_Stmt_ClassMethod |
protected enterTraitNode ( PHPParser_Node_Stmt_Trait $node ) | ||
$node | PHPParser_Node_Stmt_Trait |