"Field value in in wrong format", ]; public function isValid($value) { $this->_setValue($value); if ($value < 0 || $value >= 100) { $this->_error(self::NOT_PERCENT); return false; } return true; } }