public getMaximumViolationSeverity ( ) : integer | null | ||
return | integer | null |
public function getMaximumViolationSeverity()
{
$ret = null;
foreach ($this->violations as $violation) {
if ($ret === null || $violation->getSeverity() > $ret) {
$ret = $violation->getSeverity();
}
}
return $ret;
}