public function countIssuesBySeverity(string $severity): int
    {
        $count = 0;
        foreach ($this->files as $file) {
            $count += count($file->getIssuesBySeverity($severity));
        }
        return $count;
    }
public function countIssuesBySeverity(string $severity): int
    {
        $count = 0;
        foreach ($this->files as $file) {
            $count += count($file->getIssuesBySeverity($severity));
        }
        return $count;
    }
public function countIssuesBySeverity ( string $ severity ) : int { $ count = 0 ; foreach ( $ this -> files as $ file ) { $ count += count ( $ file -> getIssuesBySeverity ( $ severity ) ) ; } return $ count ; }
Returns the number of issues with a given severity for the entire report

@param string $severity The severity. Should be one of the Issue class' SEVERITY_* constants
@return int The number of issues for the entire report.
Returns the number of issues with a given severity for the entire report