$vertex
$vertex :
GraphContext is a context for building a graph.
Indexing the vertices by name
__construct(array $cfg, \Trismegiste\Mondrian\Transform\Logger\LoggerInterface $log)
Build the context
array | $cfg | the config |
\Trismegiste\Mondrian\Transform\Logger\LoggerInterface | $log | a logger |
if config is invalid
findVertex(string $type, string $key) : \Trismegiste\Mondrian\Graph\Vertex
Find a vertex by its type and name
string | $type | |
string | $key |
or null
findAllMethodSameName(string $method) : array<mixed,\Trismegiste\Mondrian\Graph\Vertex>
Find all methods with the same name whatever its class
string | $method |
indicesVertex(string $type, string $index, \Trismegiste\Mondrian\Graph\Vertex $v)
Maintains a hashmap : ( type , index ) => Vertex obj
string | $type | [interface|class|method|param|impl|trait] |
string | $index | the unique index in this type |
\Trismegiste\Mondrian\Graph\Vertex | $v | the vertex to index |