1 | <?php |
||
29 | class Process implements ProcessInterface, OutputableInterface |
||
30 | { |
||
31 | const PROCESS_STOPPED = 0; |
||
32 | const PROCESS_RUNNING = 1; |
||
33 | const PROCESS_SIGNALED = 2; |
||
34 | |||
35 | /** |
||
36 | * @var resource |
||
37 | */ |
||
38 | protected $process; |
||
39 | |||
40 | /** |
||
41 | * @var CommandInterface |
||
42 | */ |
||
43 | protected $command; |
||
44 | |||
45 | /** |
||
46 | * @var OutputInterface |
||
47 | */ |
||
48 | protected $output; |
||
49 | |||
50 | /** |
||
51 | * Process constructor. |
||
52 | * |
||
53 | * @param CommandInterface $command |
||
54 | */ |
||
55 | 12 | public function __construct(CommandInterface $command) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 1 | public function setCommand(CommandInterface $command) |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 9 | public function getCommand() |
|
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | 7 | public function open() |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 4 | public function close() |
|
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 2 | public function isRunning() |
|
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function errors() |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | 2 | public function status() |
|
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | 11 | public function setOutput(OutputInterface $output) |
|
158 | |||
159 | /** |
||
160 | * {@inheritdoc} |
||
161 | */ |
||
162 | 8 | public function getOutput() |
|
170 | } |
||
171 |