Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class InvalidCredentialsException extends AuthenticationException |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $username; |
||
11 | |||
12 | public static function forUsername(string $username): self |
||
13 | { |
||
14 | $exception = new static(trans('auth.failed')); |
||
|
|||
15 | $exception->username = $username; |
||
16 | |||
17 | return $exception; |
||
18 | } |
||
19 | |||
20 | public static function withDefaultMessage(): self |
||
21 | { |
||
22 | return new static(trans('auth.failed')); |
||
23 | } |
||
24 | |||
25 | protected function getUsername(): string |
||
28 | } |
||
29 | } |
||
30 |