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); |
||
39 | 1 | public static function getMetadata(): Metadata |
|
40 | { |
||
41 | 1 | return new Metadata( |
|
42 | 1 | 'RequiredWith', |
|
43 | 1 | "The field under validation must be present and not empty only if any of the other specified fields are present.", |
|
44 | [ |
||
45 | 1 | new MetadataParameter( |
|
46 | 1 | 'fields', |
|
47 | 1 | '[String]', |
|
48 | 1 | 'The fields that are required with' |
|
49 | ) |
||
54 |