Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
13 | final class InvalidSecretWordException extends Exception implements SkrillException |
||
14 | { |
||
15 | /** |
||
16 | * @return InvalidSecretWordException |
||
17 | */ |
||
18 | public static function emptySecretWord(): self |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return InvalidSecretWordException |
||
25 | */ |
||
26 | public static function invalidMinLength(): self |
||
27 | { |
||
28 | return new self(sprintf( |
||
29 | 'The length of Skrill Secret Word is too short. It should have %d characters or more.', |
||
30 | SecretWord::MIN_LENGTH |
||
31 | )); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return InvalidSecretWordException |
||
36 | */ |
||
37 | public static function missingLetters(): self |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return InvalidSecretWordException |
||
44 | */ |
||
45 | public static function missingNonAlphabetic(): self |
||
50 |