Flitch\File\Violation::__construct PHP Method

__construct() public method

Create a new violation.
public __construct ( integer $line, integer $column, integer $severity, string $message, string $source ) : void
$line integer
$column integer
$severity integer
$message string
$source string
return void
    public function __construct($line, $column, $severity, $message, $source)
    {
        $this->line = (int) $line;
        $this->column = (int) $column;
        $this->severity = min(3, max(0, (int) $severity));
        $this->message = $message;
        $this->source = $source;
    }