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