$graph
$graph :
EdgeCollector is a visitor to transform code into graph edges
This class is too long. I'll refactor it when I'll find what pattern is fitted
__construct(\Trismegiste\Mondrian\Transform\ReflectionContext $ref, \Trismegiste\Mondrian\Transform\GraphContext $grf, \Trismegiste\Mondrian\Graph\Graph $g)
\Trismegiste\Mondrian\Transform\ReflectionContext | $ref | |
\Trismegiste\Mondrian\Transform\GraphContext | $grf | |
\Trismegiste\Mondrian\Graph\Graph | $g |
findVertex(string $type, string $key) : \Trismegiste\Mondrian\Graph\Vertex
Find a vertex by its type and name
string | $type | |
string | $key |
or null
indicesVertex( $typ, $index, \Trismegiste\Mondrian\Graph\Vertex $v)
See Context
$typ | ||
$index | ||
\Trismegiste\Mondrian\Graph\Vertex | $v |
findParamVertexIdx(string $className, string $methodName, integer $idx) : \Trismegiste\Mondrian\Visitor\ParamVertex
Find a ParamVertex by its [classname x mehodName x position]
string | $className | |
string | $methodName | |
integer | $idx |
enterDeclaredMethodNode(\PHPParser_Node_Stmt_ClassMethod $node, \Trismegiste\Mondrian\Transform\Vertex\MethodVertex $signature)
Process the method node and adding the vertex of the first declared method
\PHPParser_Node_Stmt_ClassMethod | $node | |
\Trismegiste\Mondrian\Transform\Vertex\MethodVertex | $signature |
enterImplementationNode(\PHPParser_Node_Stmt_ClassMethod $node, \Trismegiste\Mondrian\Transform\Vertex\MethodVertex|null $signature, string $declaringClass)
Process the implementation vertex with the method node
\PHPParser_Node_Stmt_ClassMethod | $node | |
\Trismegiste\Mondrian\Transform\Vertex\MethodVertex|null | $signature | the first declaring method vertex |
string | $declaringClass | the first declaring class of this method |
getCalledMethodVertexOn(string $called, string $method) : null|array
Try to find a signature to link with the method to call and the object against to
string | $called | |
string | $method |
null if cannot determine vertex or an array of vertices (can be empty if no call must be made)
enterNonDynamicMethodCall(\PHPParser_Node_Expr_MethodCall $node) : void
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);
\PHPParser_Node_Expr_MethodCall | $node |