\Trismegiste\Mondrian\CommandDependCentralityCommand

DependCentralityCommand transforms a bunch of php files into a digraph and exports it into a report file with centrality informations of the dependencies of each node.

Higher rank means the vertex has many directed edges pointing to other vertices. It means the vertex has a higher risk to be changed each time there is a change somewhere in the source code (bottleneck effect)

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
getAlgorithm()
getSubname()
getFullDesc()
processGraph()
createCentrality()
configure()
execute()
getConfig()
initialize()
getPhpFinder()
$fineTuning
$phpfinder
$reportName
$reportFormat
N/A
No private methods found
No private properties found
N/A

Properties

$fineTuning

$fineTuning : 

Type

$phpfinder

$phpfinder : 

Type

$reportName

$reportName : 

Type

$reportFormat

$reportFormat : 

Type

Methods

getAlgorithm()

getAlgorithm() 

getSubname()

getSubname() 

getFullDesc()

getFullDesc() 

processGraph()

processGraph(\Trismegiste\Mondrian\Graph\Graph  $g, \Symfony\Component\Console\Output\OutputInterface  $out) : \Trismegiste\Mondrian\Graph\Graph

The method that does the job : it computes/decorates/redifines the graph passed in parameter.

Parameters

\Trismegiste\Mondrian\Graph\Graph $g

the graph to process

\Symfony\Component\Console\Output\OutputInterface $out

console output

Returns

\Trismegiste\Mondrian\Graph\Graph

the processed graph (the same or another)

createCentrality()

createCentrality(\Trismegiste\Mondrian\Graph\Graph  $g) : \Trismegiste\Mondrian\Command\Centrality

Parameters

\Trismegiste\Mondrian\Graph\Graph $g

Returns

\Trismegiste\Mondrian\Command\Centrality

configure()

configure() 

execute()

execute(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) 

{@inheritDoc}

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

getConfig()

getConfig(string  $dir) : array

get the graph section of the configuration for this package

Parameters

string $dir

the root dir of the package

Returns

array

initialize()

initialize(\Symfony\Component\Console\Input\InputInterface  $input, \Symfony\Component\Console\Output\OutputInterface  $output) 

Inject parameters of the command

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

getPhpFinder()

getPhpFinder(  $directory,   $ignoreDir) 

Parameters

$directory
$ignoreDir