PHP Class Trismegiste\Mondrian\Visitor\Edge\MethodLevelHelper

..
Inheritance: extends Trismegiste\Mondrian\Visitor\State\AbstractState
Afficher le fichier Open project: trismegiste/mondrian

Protected Properties

Свойство Type Description
$currentFqcn
$currentMethodNode
$fileState

Méthodes publiques

Méthode Description
enter ( PhpParser\Node $node )

Méthodes protégées

Méthode Description
enterMethodCall ( PhpParser\Node\Expr\MethodCall $node ) Links the current implementation vertex to all methods with the same name. Filters on some obvious cases.
enterNewInstance ( PhpParser\Node\Expr\New_ $node ) Visits a "new" statement node
enterNonDynamicMethodCall ( PhpParser\Node\Expr\MethodCall $node ) Process of simple call of a method Sample: $obj->getThing($arg); Do not process : call_user_func(array($obj, 'getThing'), $arg); Do not process : $reflectionMethod->invoke($obj, 'getThing', $arg);
enterStaticCall ( PhpParser\Node\Expr\StaticCall $node )
findMethodInInheritanceTree ( $cls, $method ) Check if the class exists before searching for the declaring class of the method, because class could be unknown, outside or code could be bugged
getCalledMethodVertexOn ( string $called, string $method ) : null | array Try to find a signature to link with the method to call and the object against to
getParentName ( )

Method Details

enter() public méthode

public enter ( PhpParser\Node $node )
$node PhpParser\Node

enterMethodCall() protected méthode

Links the current implementation vertex to all methods with the same name. Filters on some obvious cases.
protected enterMethodCall ( PhpParser\Node\Expr\MethodCall $node )
$node PhpParser\Node\Expr\MethodCall

enterNewInstance() protected méthode

Add an edge from current implementation to the class which a new instance is created
protected enterNewInstance ( PhpParser\Node\Expr\New_ $node )
$node PhpParser\Node\Expr\New_

enterNonDynamicMethodCall() protected méthode

Process of simple call of a method Sample: $obj->getThing($arg); Do not process : call_user_func(array($obj, 'getThing'), $arg); Do not process : $reflectionMethod->invoke($obj, 'getThing', $arg);
protected enterNonDynamicMethodCall ( PhpParser\Node\Expr\MethodCall $node )
$node PhpParser\Node\Expr\MethodCall

enterStaticCall() protected méthode

protected enterStaticCall ( PhpParser\Node\Expr\StaticCall $node )
$node PhpParser\Node\Expr\StaticCall

findMethodInInheritanceTree() protected méthode

Check if the class exists before searching for the declaring class of the method, because class could be unknown, outside or code could be bugged
protected findMethodInInheritanceTree ( $cls, $method )

getCalledMethodVertexOn() protected méthode

Try to find a signature to link with the method to call and the object against to
protected getCalledMethodVertexOn ( string $called, string $method ) : null | array
$called string
$method string
Résultat null | array null if cannot determine vertex or an array of vertices (can be empty if no call must be made)

getParentName() abstract protected méthode

abstract protected getParentName ( )

Property Details

$currentFqcn protected_oe property

protected $currentFqcn

$currentMethodNode protected_oe property

protected $currentMethodNode

$fileState protected_oe property

protected $fileState