Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 40% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | abstract class Exception extends \Exception |
||
6 | { |
||
7 | /** |
||
8 | * @param string $format |
||
9 | * @param mixed ...$args |
||
10 | * @return static |
||
11 | */ |
||
12 | public static function withMessage(string $format, ...$args): self |
||
13 | { |
||
14 | return new static(\vsprintf($format, $args)); |
||
15 | } |
||
16 | |||
17 | 73 | public function __construct($message, $code = 0, \Throwable $previous = null) |
|
30 | } |
||
31 | } |
||
32 |