Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
5 / 5 |
| BadInterfaceCommand | |
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\CouplingMaker; | |
| /** | |
| * BadInterfaceCommand transforms reduced the digraph | |
| * to the bad interface with concrete parameters in their | |
| * methods | |
| */ | |
| class BadInterfaceCommand extends AbstractParse | |
| { | |
| protected function getSubname() | |
| { | |
| return 'badcontract'; | |
| } | |
| protected function getFullDesc() | |
| { | |
| return parent::getFullDesc() . ' with bad interfaces'; | |
| } | |
| protected function processGraph(Graph $graph, OutputInterface $output) | |
| { | |
| $algo = new CouplingMaker($graph); | |
| $result = $algo->createReducedGraph(); | |
| return $result; | |
| } | |
| } |