Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 653 | public function getConverterChain(string $fromFqcn, string $toFqcn): array |
|
29 | { |
||
30 | 653 | $fromVertex = $this->findVertex($fromFqcn); |
|
31 | 653 | $toVertex = $this->findVertex($toFqcn); |
|
32 | |||
33 | 652 | $walk = (new Dijkstra($fromVertex))->getWalkTo($toVertex); |
|
34 | |||
35 | 652 | $converters = []; |
|
36 | |||
37 | /** @var Base $edge */ |
||
38 | 652 | foreach ($walk->getEdges() as $edge) { |
|
39 | 652 | $converters[] = $edge->getAttribute(Factory::GRAPH_EDGE_KEY_CONVERTER); |
|
40 | } |
||
41 | |||
42 | 652 | return $converters; |
|
43 | } |
||
65 |