| Total Complexity | 8 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class AuthException extends \Exception |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @return AuthException |
||
| 25 | */ |
||
| 26 | public static function incorrectCredentials(): AuthException |
||
| 27 | { |
||
| 28 | return new static(t('exception.incorrect_auth_credentials')); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return AuthException |
||
| 33 | */ |
||
| 34 | public static function inactiveAccount(): AuthException |
||
| 35 | { |
||
| 36 | return new static(t('exception.inactive_account')); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return AuthException |
||
| 41 | */ |
||
| 42 | public static function incorrectVerificationCode(): AuthException |
||
| 43 | { |
||
| 44 | return new static(t('exception.incorrect_verification_code')); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return AuthException |
||
| 49 | */ |
||
| 50 | public static function verificationCodeExpired(): AuthException |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return AuthException |
||
| 57 | */ |
||
| 58 | public static function misconfiguredAuthConfig(): AuthException |
||
| 59 | { |
||
| 60 | return new static(t('exception.misconfigured_auth_config')); |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $name |
||
| 65 | * @return AuthException |
||
| 66 | */ |
||
| 67 | public static function undefinedAuthType(string $name): AuthException |
||
| 68 | { |
||
| 69 | return new static(t('exception.undefined_auth_type', $name)); |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return AuthException |
||
| 74 | */ |
||
| 75 | public static function incorrectUserSchema(): AuthException |
||
| 76 | { |
||
| 77 | return new static(t('exception.incorrect_user_schema')); |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return AuthException |
||
| 82 | */ |
||
| 83 | public static function incorrectAuthService(): AuthException |
||
| 86 | } |
||
| 87 | } |
||
| 88 |