/** * {@inheritDoc} */ public function isRequiredInteger($value, $suppressException = true) { /* Clear the last error. */ $this->lastError = null; /* If valid just return true. */ if (Validator::isRequiredInteger($value)) { return true; } /* Set the error message. */ $this->lastError = sprintf('Expected integer, \'%s\' given.', gettype($value)); return $this->validationFailed($suppressException); }