PHP Class Trismegiste\Mondrian\Visitor\NewInstanceRefactor

Inheritance: extends PublicCollector
Afficher le fichier Open project: trismegiste/mondrian

Protected Properties

Свойство Type Description
$currentClassStmts
$currentMethodRelevant
$dumper
$factoryMethodStack

Méthodes publiques

Méthode Description
__construct ( PhpPersistence $callable ) The ctor needs a service for persistence of modified files
afterTraverse ( array $nodes ) Writes modified files
enterNode ( PHPParser_Node $node )
leaveNode ( PHPParser_Node $node )

Méthodes protégées

Méthode Description
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 )

Private Methods

Méthode Description
getProcessedArgument ( array $args )

Method Details

__construct() public méthode

The ctor needs a service for persistence of modified files
public __construct ( PhpPersistence $callable )
$callable Trismegiste\Mondrian\Parser\PhpPersistence

afterTraverse() public méthode

Writes modified files
public afterTraverse ( array $nodes )
$nodes array

enterClassNode() protected méthode

protected enterClassNode ( PHPParser_Node_Stmt_Class $node )
$node PHPParser_Node_Stmt_Class

enterInterfaceNode() protected méthode

protected enterInterfaceNode ( PHPParser_Node_Stmt_Interface $node )
$node PHPParser_Node_Stmt_Interface

enterNewInstance() protected méthode

Enter in a new instance statement (only process "hard-coded" classname)
protected enterNewInstance ( PHPParser_Node_Expr_New $node ) : PHPParser_Node_Expr_MethodCall | null
$node PHPParser_Node_Expr_New
Résultat PHPParser_Node_Expr_MethodCall | null

enterNode() public méthode

public enterNode ( PHPParser_Node $node )
$node PHPParser_Node

enterPublicMethodNode() protected méthode

protected enterPublicMethodNode ( PHPParser_Node_Stmt_ClassMethod $node )
$node PHPParser_Node_Stmt_ClassMethod

enterTraitNode() protected méthode

protected enterTraitNode ( PHPParser_Node_Stmt_Trait $node )
$node PHPParser_Node_Stmt_Trait

leaveNode() public méthode

public leaveNode ( PHPParser_Node $node )
$node PHPParser_Node

Property Details

$currentClassStmts protected_oe property

protected $currentClassStmts

$currentMethodRelevant protected_oe property

protected $currentMethodRelevant

$dumper protected_oe property

protected $dumper

$factoryMethodStack protected_oe property

protected $factoryMethodStack