Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function __construct($message = null, $exitCode = 1) |
||
16 | { |
||
17 | $this->message = $message; |
||
18 | // Ensure the exit code is non-zero. The exit code may have |
||
19 | // come from an exception, and those often default to zero if |
||
20 | // a specific value is not provided. |
||
21 | $this->exitCode = $exitCode == 0 ? 1 : $exitCode; |
||
22 | } |
||
23 | public function getExitCode() |
||
33 |