1.2.164. 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.164.1. Specs

Short name

Dump/CollectClassChildren

Rulesets

All, CE, Changed Behavior, Dump

Exakat since

2.0.3

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

inclusion

Available in

Entreprise Edition, Community Edition, Exakat Cloud