Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 25 | public function __construct(Process $process) |
|
29 | { |
||
30 | 25 | $this->process = $process; |
|
31 | |||
32 | 25 | $message = sprintf( |
|
33 | 25 | 'Command "%s" failed with code %s, error returned: %s', |
|
34 | 25 | $this->process->getCommandLine(), |
|
35 | 25 | $this->process->getExitCode(), |
|
36 | 25 | $this->process->getErrorOutput() |
|
37 | ); |
||
38 | |||
39 | 25 | parent::__construct($message, $this->process->getExitCode()); |
|
40 | 25 | } |
|
41 | |||
50 |