Total Complexity | 1 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class ApiError extends Exception |
||
12 | { |
||
13 | /** |
||
14 | * @param string $error |
||
15 | * @param string $name |
||
16 | * @param int $code |
||
17 | * @param Throwable|null $previous |
||
18 | * @return ApiError |
||
19 | */ |
||
20 | public static function responseError(string $error, string $name, $code = 0, Throwable $previous = null) |
||
25 |