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 | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | final class KeyException extends NestedValidationException implements NonOmissibleException |
||
| 23 | { |
||
| 24 | public const NOT_PRESENT = 'not_present'; |
||
| 25 | public const INVALID = 'invalid'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public static $defaultTemplates = [ |
||
| 31 | self::MODE_DEFAULT => [ |
||
| 32 | self::NOT_PRESENT => 'Key {{name}} must be present', |
||
| 33 | self::INVALID => 'Key {{name}} must be valid', |
||
| 34 | ], |
||
| 35 | self::MODE_NEGATIVE => [ |
||
| 36 | self::NOT_PRESENT => 'Key {{name}} must not be present', |
||
| 37 | self::INVALID => 'Key {{name}} must not be valid', |
||
| 38 | ], |
||
| 39 | ]; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 15 | protected function chooseTemplate(): string |
|
| 49 |