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