PHP Class PDepend\Metrics\Analyzer\InheritanceAnalyzer
ANDC - Average Number of Derived Classes: The average number of direct
subclasses of a class. This metric only covers classes in the analyzed system,
no library or environment classes are covered.
AHH - Average Hierarchy Height: The computed average of all inheritance
trees within the analyzed system, external classes or interfaces are ignored.
Afficher le fichier
Open project: horde/horde
Class Usage Examples
Méthodes publiques
Méthode |
Description |
|
analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void |
Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes. |
|
getNodeMetrics ( PDepend\Source\AST\ASTArtifact $artifact ) : array(string=>mixed) |
This method will return an array with all generated metric values
for the given $node. If there are no metrics for the requested
node, this method will return an empty array. |
|
getProjectMetrics ( ) : array(string=>mixed) |
Provides the project summary as an array. |
|
visitClass ( PDepend\Source\AST\ASTClass $class ) : void |
Visits a class node. |
|
Private Methods
Method Details
Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes.
public analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void |
$namespaces |
PDepend\Source\AST\ASTNamespace[] |
|
Résultat |
void |
|
getNodeMetrics()
public méthode
This method will return an array with all generated metric values
for the given $node. If there are no metrics for the requested
node, this method will return an empty array.
public getNodeMetrics ( PDepend\Source\AST\ASTArtifact $artifact ) : array(string=>mixed) |
$artifact |
PDepend\Source\AST\ASTArtifact |
|
Résultat |
array(string=>mixed) |
|
getProjectMetrics()
public méthode
array(
'andc' => 0.73,
'ahh' => 0.56
)
visitClass()
public méthode
public visitClass ( PDepend\Source\AST\ASTClass $class ) : void |
$class |
PDepend\Source\AST\ASTClass |
|
Résultat |
void |
|