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