public function apply(PHPUnit_Util_Metrics $metrics) { $dit = $metrics->getDIT(); if ($dit > $this->threshold) { return sprintf('Depth of Inheritance Tree (DIT) is %d.', $dit); } }