Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
UserNotFoundException
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 create
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types = 1);
4
5namespace App\Exception\Service\UserService;
6
7use RuntimeException;
8
9class 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}