PHP Class Trismegiste\Mondrian\Visitor\Edge\MethodLevelHelper

..
Inheritance: extends Trismegiste\Mondrian\Visitor\State\AbstractState
Exibir arquivo Open project: trismegiste/mondrian

Protected Properties

Property Type Description
$currentFqcn
$currentMethodNode
$fileState

Public Methods

Method Description
enter ( PhpParser\Node $node )

Protected Methods

Method 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 method

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

enterMethodCall() protected method

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 method

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 method

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 method

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

findMethodInInheritanceTree() protected 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
protected findMethodInInheritanceTree ( $cls, $method )

getCalledMethodVertexOn() protected method

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
return null | array null if cannot determine vertex or an array of vertices (can be empty if no call must be made)

getParentName() abstract protected method

abstract protected getParentName ( )

Property Details

$currentFqcn protected_oe property

protected $currentFqcn

$currentMethodNode protected_oe property

protected $currentMethodNode

$fileState protected_oe property

protected $fileState