| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class IterableFloatGuard implements Guard |
||
| 10 | { |
||
| 11 | use ErrorMessagesBase; |
||
| 12 | use FloatBase { |
||
| 13 | // Use the Iterable's validation as the primary validation logic and rename the float validation method. |
||
| 14 | SingleIterableInput::validation insteadof FloatBase; |
||
| 15 | FloatBase::validation as floatValidation; |
||
| 16 | } |
||
| 17 | use SingleIterableInput; |
||
| 18 | |||
| 19 | 8 | public function __construct($input, ?iterable $default = null) |
|
| 23 | 8 | } |
|
| 24 | |||
| 25 | 5 | protected function validateIterableElement($element, &$value): bool |
|
| 30 |