|
|
@ -9,7 +9,7 @@ |
|
|
|
* |
|
|
|
*/ |
|
|
|
|
|
|
|
class MbStrlenValidator extends \Majestic\Validator |
|
|
|
class MbStrlenValidator extends Validator |
|
|
|
{ |
|
|
|
|
|
|
|
const GREATHER_THAN = 'not_match'; |
|
|
@ -27,7 +27,7 @@ class MbStrlenValidator extends \Majestic\Validator |
|
|
|
{ |
|
|
|
$this->setValue($value); |
|
|
|
if ($this->token === null) { |
|
|
|
throw new InitializationException('Token not defined.'); |
|
|
|
throw new \Majestic\Exception\InitializationException('Token not defined.'); |
|
|
|
} |
|
|
|
|
|
|
|
if (mb_strlen($value) > $this->token) { |
|
|
|