PHP Класс Trismegiste\Mondrian\Visitor\Edge\MethodLevelHelper

..
Наследование: extends Trismegiste\Mondrian\Visitor\State\AbstractState
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$currentFqcn
$currentMethodNode
$fileState

Открытые методы

Метод Описание
enter ( PhpParser\Node $node )

Защищенные методы

Метод Описание
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 ( )

Описание методов

enter() публичный Метод

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

enterMethodCall() защищенный Метод

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() защищенный Метод

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() защищенный Метод

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 enterStaticCall ( PhpParser\Node\Expr\StaticCall $node )
$node PhpParser\Node\Expr\StaticCall

findMethodInInheritanceTree() защищенный Метод

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() защищенный Метод

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
Результат null | array null if cannot determine vertex or an array of vertices (can be empty if no call must be made)

getParentName() абстрактный защищенный Метод

abstract protected getParentName ( )

Описание свойств

$currentFqcn защищенное свойство

protected $currentFqcn

$currentMethodNode защищенное свойство

protected $currentMethodNode

$fileState защищенное свойство

protected $fileState