Total Complexity | 1 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class NonEmpty extends ComposingAssertion implements Validation |
||
11 | { |
||
12 | public const MESSAGE = 'non-empty.empty'; |
||
13 | |||
14 | /** |
||
15 | * @template T |
||
16 | * @psalm-param T $data |
||
17 | * @param mixed $data |
||
18 | * @param array $context |
||
19 | * @return ValidationResult |
||
20 | */ |
||
21 | public function validate($data, array $context = []): ValidationResult |
||
35 |