$graph
$graph :
VertexCollector is a visitor to transform code into graph vertices
It feels like a Mediator between the two Context and concrete PassCollector (It is not one because Context and concrete PassCollector do not share a common interface)
__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 |
pushParameter(string $methodName, integer $order)
Add a parameter vertex. I must point out that I store the order of the parameter, not its name. Why ? Because, name can change accross inheritance tree. Therefore, it could fail the refactoring of the source from the digraph.
string | $methodName | like 'FQCN::method' |
integer | $order |