1.2.181. Collect Method Counts¶
This analysis collects the number of methods per class, trait or interface.
The count applies to classes, anonymous classes, traits and interfaces. They are considered distinct one from another.
<?php
class foo {
// 2 methods
function __construct() {}
function foo() {}
}
interface bar {
// 1 method
function a() ;
}
class barbar {
// 3 methods
function __construct() {}
function foo() {}
function a() {}
}
?>
1.2.181.1. Connex PHP features¶
1.2.181.1.1. Specs¶
Short name |
Dump/CollectMethodCounts |
Rulesets |
|
Exakat since |
2.1.2 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |