| 1 | <?php |
||
| 13 | class ConsoleException extends Exception implements ConsoleExceptionContract |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The exit code. |
||
| 17 | * |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $exitCode; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The headers. |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $headers; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * ConsoleException constructor. |
||
| 31 | * |
||
| 32 | * @param int $exitCode |
||
| 33 | * @param string|null $message |
||
| 34 | * @param \Exception|null $previous |
||
| 35 | * @param array $headers |
||
| 36 | * @param int code |
||
| 37 | */ |
||
| 38 | 1 | public function __construct( |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | 1 | public function getExitCode(): int |
|
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | 1 | public function getHeaders(): array |
|
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritdoc} |
||
| 65 | */ |
||
| 66 | public function setHeaders(array $headers): ConsoleExceptionContract |
||
| 72 | } |
||
| 73 |