We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
22 | final class KeyNestedException extends NestedValidationException implements NonOmissibleException |
||
23 | { |
||
24 | public const NOT_PRESENT = 'not_present'; |
||
25 | public const INVALID = 'invalid'; |
||
26 | |||
27 | public static $defaultTemplates = [ |
||
28 | self::MODE_DEFAULT => [ |
||
29 | self::NOT_PRESENT => 'No items were found for key chain {{name}}', |
||
30 | self::INVALID => 'Key chain {{name}} is not valid', |
||
31 | ], |
||
32 | self::MODE_NEGATIVE => [ |
||
33 | self::NOT_PRESENT => 'Items for key chain {{name}} must not be present', |
||
34 | self::INVALID => 'Key chain {{name}} must not be valid', |
||
35 | ], |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 4 | protected function chooseTemplate(): string |
|
46 |