1 | <?php |
||
22 | class ProcessBuilder implements ProcessBuilderInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private $arguments; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $timeout; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $path; |
||
38 | |||
39 | /** |
||
40 | * ProcessBuilder constructor. |
||
41 | * |
||
42 | * @param string $prefix |
||
43 | * @param string $path |
||
44 | */ |
||
45 | public function __construct(string $prefix, string $path) |
||
51 | |||
52 | /** |
||
53 | * @param array $arguments arguments for process generation |
||
54 | * @return ProcessBuilderInterface |
||
55 | */ |
||
56 | public function setArguments(array $arguments): ProcessBuilderInterface |
||
62 | |||
63 | /** |
||
64 | * @param int $timeout |
||
65 | * @return ProcessBuilderInterface |
||
66 | */ |
||
67 | public function setTimeout(int $timeout): ProcessBuilderInterface |
||
73 | |||
74 | /** |
||
75 | * @return Process |
||
76 | */ |
||
77 | public function getProcess(): Process |
||
86 | } |
||
87 |