HippoPHP\Hippo\Checks\AbstractCheck::addViolation PHP Method

addViolation() protected method

Add a violation to the current file.
protected addViolation ( File $file, integer $line, integer $column, string $message, integer $severity = null )
$file HippoPHP\Hippo\File
$line integer
$column integer
$message string
$severity integer
    protected function addViolation(File $file, $line, $column, $message, $severity = null)
    {
        if ($severity === null) {
            $severity = $this->severity;
        }
        $this->checkResult->addViolation(new Violation($file, $line, $column, $severity, $message));
    }