| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 21 | public function __construct( |
||
| 22 | Host $host, |
||
| 23 | string $command, |
||
| 24 | int $exitCode, |
||
| 25 | string $output, |
||
| 26 | string $errorOutput |
||
| 27 | ) { |
||
| 28 | $this->host = $host; |
||
| 29 | $this->command = $command; |
||
| 30 | $this->exitCode = $exitCode; |
||
| 31 | $this->output = $output; |
||
| 32 | $this->errorOutput = $errorOutput; |
||
| 33 | |||
| 34 | $message = sprintf('The command "%s" failed.', $command); |
||
| 35 | parent::__construct($message, $exitCode); |
||
| 36 | } |
||
| 37 | |||
| 68 |