HippoPHP\Hippo\Checks\Line\MaxLineLengthCheck::setLimit PHP Method

setLimit() public method

Sets the error line length limit.
public setLimit ( $violationSeverity, integer $length ) : MaxLength
$length integer
return MaxLength
    public function setLimit($violationSeverity, $length)
    {
        $length = (int) $length;
        $this->limits[$violationSeverity] = $length > 0 ? $length : null;
        return $this;
    }