Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
44 | 1 | public static function getMetadata(): ValidatorMetadata |
|
45 | { |
||
46 | 1 | return new ValidatorMetadata( |
|
47 | 1 | 'RequiredWithAll', |
|
48 | 1 | "The field under validation must be present and not empty only if all of the other specified fields are present.", |
|
49 | [ |
||
50 | 1 | new ValidatorArgs( |
|
51 | 1 | 'fields', |
|
52 | 1 | '[String]', |
|
53 | 1 | 'The fields that are required with' |
|
54 | ) |
||
59 |