1.2.166. Collect Class Children Count¶
Count the number of class children for a class. The more children a class has, the harder it is to update it, as it might impact more other classes.
<?php
// 2 children
class a {}
// 1 children
class b extends a {}
// no children
class c extends b {}
// no children
class d extends a {}
?>
1.2.166.1. Connex PHP features¶
1.2.166.1.1. Specs¶
Short name |
Dump/CollectClassChildren |
Rulesets |
|
Exakat since |
2.0.3 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |