PHP 클래스 Trismegiste\Mondrian\Visitor\Edge\MethodLevelHelper

..
상속: extends Trismegiste\Mondrian\Visitor\State\AbstractState
파일 보기 프로젝트 열기: trismegiste/mondrian

보호된 프로퍼티들

프로퍼티 타입 설명
$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