public function isValid($value) : bool { $length = mb_strlen((string) $value, 'utf-8'); return $length >= $this->getMin() && $length <= $this->getMax(); }