Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| AuthErrorCode | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| getMessage | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Auth\Domain\Exception; |
| 4 | |
| 5 | use App\Shared\Domain\Exception\BaseErrorCode; |
| 6 | |
| 7 | /** |
| 8 | * @author Wilhelm Zwertvaegher |
| 9 | */ |
| 10 | enum AuthErrorCode: string implements BaseErrorCode |
| 11 | { |
| 12 | case INVALID_USERNAME = 'Invalid username'; |
| 13 | |
| 14 | |
| 15 | public function getMessage(): string |
| 16 | { |
| 17 | return $this->value; |
| 18 | } |
| 19 | |
| 20 | public function getCode(): string |
| 21 | { |
| 22 | return $this->name; |
| 23 | } |
| 24 | } |