Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
5 / 5 |
HiddenCouplingCommand | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
5 / 5 |
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% |
3 / 3 |
<?php | |
/* | |
* Mondrian | |
*/ | |
namespace Trismegiste\Mondrian\Command; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Trismegiste\Mondrian\Graph\Graph; | |
use Symfony\Component\Console\Input\InputOption; | |
use Trismegiste\Mondrian\Analysis\HiddenCoupling; | |
/** | |
* HiddenCouplingCommand transforms a bunch of php files into a digraph | |
* with hidden coupling | |
* | |
*/ | |
class HiddenCouplingCommand extends AbstractParse | |
{ | |
protected function getSubname() | |
{ | |
return 'hidden'; | |
} | |
protected function getFullDesc() | |
{ | |
return parent::getFullDesc() . ' with hidden coupling'; | |
} | |
protected function processGraph(Graph $graph, OutputInterface $output) | |
{ | |
$algo = new HiddenCoupling($graph); | |
$result = $algo->createReducedGraph(); | |
return $result; | |
} | |
} |