| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class CryptorException extends BaseException |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @return CryptorException |
||
| 27 | */ |
||
| 28 | public static function configNotFound(): CryptorException |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return CryptorException |
||
| 35 | */ |
||
| 36 | public static function noPrivateKeyCreated(): CryptorException |
||
| 37 | { |
||
| 38 | return new static(t('exception.openssl_private_key_not_created'), E_WARNING); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return CryptorException |
||
| 43 | */ |
||
| 44 | public static function publicKeyNotProvided(): CryptorException |
||
| 45 | { |
||
| 46 | return new static(t('exception.openssl_public_key_not_provided'), E_WARNING); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return CryptorException |
||
| 51 | */ |
||
| 52 | public static function privateKeyNotProvided(): CryptorException |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return CryptorException |
||
| 59 | */ |
||
| 60 | public static function invalidCipher(): CryptorException |
||
| 63 | } |
||
| 64 | } |