All Classes Namespaces Files Functions Variables Pages
NumberValidator Class Reference
Inheritance diagram for NumberValidator:
AbstractValidator ValidatorInterface

Public Member Functions

 isValid ($value)
- Public Member Functions inherited from AbstractValidator
 __construct (array $options=[])
 validate ($value)
 getOptions ()

Additional Inherited Members

- Protected Member Functions inherited from AbstractValidator
 isValid ($value)
 addError ($message, $code, array $arguments=[], $title= '')
 isEmpty ($value)
 translateErrorMessage ($translateKey, $extensionName, $arguments=[])
- Protected Attributes inherited from AbstractValidator
 $acceptsEmptyValues = true
 $supportedOptions = []
 $options = []

Detailed Description

Validator for general numbers.

Definition at line 22 of file NumberValidator.php.

Member Function Documentation

isValid (   $value)

Checks if the given value is a valid number.

mixed$valueThe value that should be validated

Definition at line 30 of file NumberValidator.php.

References AbstractValidator\addError(), and AbstractValidator\translateErrorMessage().