| 1 | <?php |
||
| 20 | class ConsoleException extends Exception implements ConsoleExceptionContract |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * The exit code. |
||
| 24 | * |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $exitCode; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The headers. |
||
| 31 | * |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | private $headers; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * ConsoleException constructor. |
||
| 38 | * |
||
| 39 | * @param int $exitCode |
||
| 40 | * @param string|null $message |
||
| 41 | * @param \Exception|null $previous |
||
| 42 | * @param array $headers |
||
| 43 | * @param int code |
||
| 44 | */ |
||
| 45 | 1 | public function __construct( |
|
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 1 | public function getExitCode(): int |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 1 | public function getHeaders(): array |
|
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | public function setHeaders(array $headers): ConsoleExceptionContract |
||
| 79 | } |
||
| 80 |