/**
  * {@inheritDoc}
  */
 public function isRequiredNumericRange($value, $min, $max, $suppressException = true)
 {
     /* Clear the last error. */
     $this->lastError = null;
     /* If valid just return true. */
     if (Validator::isRequiredNumericRange($value, $min, $max)) {
         return true;
     }
     /* Set the error message. */
     $this->lastError = sprintf('Expects numeric in range [%d, %d], \'%d\' given.', $min, $max, is_scalar($value) ? $value : gettype($value));
     return $this->validationFailed($suppressException);
 }