public function setMin(int $min) : self
{
if ($min < 0) {
throw new \InvalidArgumentException('Length of string must be greater than zero.');
}
if ($this->max !== null && $min > $this->max) {
throw new \InvalidArgumentException('Min length must be lower or equal to max length.');
}
$this->min = $min;
return $this;
}