Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
3 / 3 |
CyclicCommand | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
3 / 3 |
getSubname() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
getFullDesc() | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
processGraph(Graph $graph, OutputInterface $output) | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
/* | |
* Mondrian | |
*/ | |
namespace Trismegiste\Mondrian\Command; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Trismegiste\Mondrian\Graph\Graph; | |
use Trismegiste\Mondrian\Analysis\Cycle; | |
/** | |
* CyclicCommand reduces a graph to its strongly connected components | |
*/ | |
class CyclicCommand extends AbstractParse | |
{ | |
protected function getSubname() | |
{ | |
return 'cycle'; | |
} | |
protected function getFullDesc() | |
{ | |
return parent::getFullDesc() . ' with cyclic coupling'; | |
} | |
protected function processGraph(Graph $graph, OutputInterface $output) | |
{ | |
return new Cycle($graph); | |
} | |
} |