| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __construct(array $command, string $tempDir) |
||
| 36 | { |
||
| 37 | $this->id = \sha1(implode(' ', $command)); |
||
| 38 | $this->command = $command; |
||
| 39 | $this->pathToLockFile = rtrim($tempDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $this->id; |
||
| 40 | |||
| 41 | $preparedCommand = array_merge($command, [';', 'rm', $this->pathToLockFile]); |
||
| 42 | |||
| 43 | $this->process = new SymfonyProcess($preparedCommand); |
||
| 44 | } |
||
| 83 |