| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct(string $command, string $output, int $returnCode) |
||
| 31 | { |
||
| 32 | if ($this->returnCode == 127) { |
||
| 33 | $message = 'Command not found: "'.$command.'"'; |
||
| 34 | } else { |
||
| 35 | $message = 'Command "'.$command.'" exited with code '.$returnCode.': '.$output; |
||
| 36 | } |
||
| 37 | |||
| 38 | parent::__construct($message); |
||
| 39 | } |
||
| 41 |