Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 38 | public function __invoke(): Process |
|
35 | { |
||
36 | 38 | $process = new Process($this->command); |
|
37 | 38 | if ($this->processParams !== null) { |
|
38 | 38 | $process->setTimeout($this->processParams->getTimeout()); |
|
39 | 38 | $process->setIdleTimeout($this->processParams->getIdleTimeout()); |
|
40 | 38 | $process->setEnv($this->processParams->getEnv()); |
|
41 | } |
||
42 | |||
43 | 38 | return $process; |
|
44 | } |
||
46 |