| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class AuthException extends BaseException |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @return AuthException |
||
| 27 | */ |
||
| 28 | public static function incorrectCredentials(): AuthException |
||
| 29 | { |
||
| 30 | return new static(t('exception.incorrect_auth_credentials')); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return AuthException |
||
| 35 | */ |
||
| 36 | public static function inactiveAccount(): AuthException |
||
| 37 | { |
||
| 38 | return new static(t('exception.inactive_account')); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return AuthException |
||
| 43 | */ |
||
| 44 | public static function incorrectVerificationCode(): AuthException |
||
| 45 | { |
||
| 46 | return new static(t('exception.incorrect_verification_code')); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return AuthException |
||
| 51 | */ |
||
| 52 | public static function verificationCodeExpired(): AuthException |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return AuthException |
||
| 59 | */ |
||
| 60 | public static function incorrectUserSchema(): AuthException |
||
| 61 | { |
||
| 62 | return new static(t('exception.incorrect_user_schema')); |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return AuthException |
||
| 67 | */ |
||
| 68 | public static function incorrectAuthService(): AuthException |
||
| 71 | } |
||
| 72 | } |