Jyxo\Input\Validator\StringLengthGreaterThan::setMin PHP Method

setMin() public method

Sets the minimal string length.
public setMin ( integer $min ) : self
$min integer Minimal string length
return self
    public function setMin(int $min) : self
    {
        if ($min < 0) {
            throw new \InvalidArgumentException('Length of string must be greater than zero.');
        }
        $this->min = $min;
        return $this;
    }