| 1 | <?php | ||
| 18 | class Number extends AbstractValidator implements ValidatorInterface | ||
| 19 | { | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @var array Message templates | ||
| 23 | */ | ||
| 24 | protected $messageTemplate = 'The value is not a number.'; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Returns true if and only if $value meets the validation requirements | ||
| 28 | * | ||
| 29 | * The context specified can be used in the validation process so that | ||
| 30 | * the same value can be valid or invalid depending on that data. | ||
| 31 | * | ||
| 32 | * @param mixed $value | ||
| 33 | * @param array|mixed $context | ||
| 34 | * | ||
| 35 | * @return bool | ||
| 36 | */ | ||
| 37 | 6 | public function validates($value, $context = []) | |
| 45 | } | ||
| 46 |