Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | public function resolve( |
||
28 | TargetProcessSettings $target_process_settings |
||
29 | ): ProcessSpecifier { |
||
30 | if (!is_null($target_process_settings->pid)) { |
||
31 | return new ProcessSpecifier($target_process_settings->pid); |
||
32 | } |
||
33 | assert(!is_null($target_process_settings->command)); |
||
34 | $pid = $this->tracee_executor->execute( |
||
35 | $target_process_settings->command, |
||
36 | $target_process_settings->arguments |
||
37 | ); |
||
38 | return new ProcessSpecifier($pid); |
||
39 | } |
||
41 |