\Trismegiste\Mondrian\CommandAbstractCentrality

AbstractCentrality transforms a bunch of php files into a digraph and exports it into a report file with centrality informations

Design pattern : Template Method

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
getSubname()
getFullDesc()
processGraph()
configure()
execute()
getConfig()
initialize()
getPhpFinder()
getAlgorithm()
createCentrality()
$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

getSubname()

getSubname() 

getFullDesc()

getFullDesc() 

processGraph()

processGraph(\Trismegiste\Mondrian\Graph\Graph  $graph, \Symfony\Component\Console\Output\OutputInterface  $output) : \Trismegiste\Mondrian\Graph\Graph

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

Parameters

\Trismegiste\Mondrian\Graph\Graph $graph
\Symfony\Component\Console\Output\OutputInterface $output

Returns

\Trismegiste\Mondrian\Graph\Graph

the processed graph (the same or another)

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

getAlgorithm()

getAlgorithm() 

createCentrality()

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

Parameters

\Trismegiste\Mondrian\Graph\Graph $g

Returns

\Trismegiste\Mondrian\Command\Centrality