HippoPHP\Hippo\CheckResult::getMaximumViolationSeverity PHP Method

getMaximumViolationSeverity() public method

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