1 | <?php declare(strict_types=1); |
||
8 | class ExitSignal extends RuntimeException |
||
9 | { |
||
10 | public const RESULT_SUCCESS = 0; |
||
11 | |||
12 | public const RESULT_ERROR = 1; |
||
13 | |||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | private $signal; |
||
18 | |||
19 | public static function success(): self |
||
23 | |||
24 | public static function error(): self |
||
28 | |||
29 | public function __construct(int $signal, $message = '', $code = 0, ?Throwable $previous = null) |
||
34 | |||
35 | public function signal(): int |
||
39 | } |
||
40 |