setFilterPath() публичный метод

Set the strategy to reduce the graph by shortening a path between 2 components
public setFilterPath ( Trismegiste\Mondrian\Analysis\Strategy\Search $strategy )
$strategy Trismegiste\Mondrian\Analysis\Strategy\Search
Пример #1
0
 protected function processGraph(Graph $graph, OutputInterface $output)
 {
     $algo = new SpaghettiCoupling($graph);
     $result = new Digraph();
     $chosenStrategy = $this->connectionStrategy;
     $algo->setFilterPath(new $chosenStrategy($result));
     $algo->generateCoupledClassGraph();
     if ($this->showCycle) {
         $result = new Cycle($result);
     }
     return $result;
 }