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