| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 4 | public function __construct(array $config, $timeout = 60, $executable = null, ProcessBuilder $processBuilder = null) |
|
| 28 | { |
||
| 29 | 4 | $this->config = $config; |
|
| 30 | |||
| 31 | 4 | if (! $executable) { |
|
| 32 | 4 | $executable = '/usr/bin/scp'; |
|
| 33 | } |
||
| 34 | |||
| 35 | 4 | if (! $processBuilder) { |
|
| 36 | 4 | $processBuilder = new ProcessBuilder(); |
|
| 37 | } |
||
| 38 | |||
| 39 | $processBuilder |
||
| 40 | 4 | ->setTimeout($timeout) |
|
| 41 | 4 | ->setPrefix($executable); |
|
| 42 | |||
| 43 | 4 | $this->processBuilder = $processBuilder; |
|
| 44 | 4 | } |
|
| 45 | |||
| 91 |