Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class FloatVal implements ValidateRuleInterface |
||
6 | { |
||
7 | /** |
||
8 | * Validates that the value represents a float. |
||
9 | * |
||
10 | * @param object $subject The subject to be filtered. |
||
11 | * @param string $field The subject field name. |
||
12 | * |
||
13 | * @return bool True if valid, false if not. |
||
14 | */ |
||
15 | 33 | public function __invoke($subject, string $field): bool |
|
27 |