All Classes Namespaces Files Functions Variables Pages
FloatValidator Class Reference
Inheritance diagram for FloatValidator:
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 floats.

Definition at line 22 of file FloatValidator.php.

Member Function Documentation

isValid (   $value)

The given value is valid if it is of type float or a string matching the regular expression [0-9.e+-]

mixed$valueThe value that should be validated

Definition at line 31 of file FloatValidator.php.

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