Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
UserNotFoundException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
create | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace App\Exception\Service\UserService; |
6 | |
7 | use RuntimeException; |
8 | |
9 | class UserNotFoundException extends RuntimeException |
10 | { |
11 | public static function create(int $id): self |
12 | { |
13 | return new self(sprintf('User with id not found [ %d ]', $id)); |
14 | } |
15 | } |