|
30 | 30 | */
|
31 | 31 | class Process implements \IteratorAggregate
|
32 | 32 | {
|
33 |
| - const ERR = 'err'; |
34 |
| - const OUT = 'out'; |
| 33 | + public const ERR = 'err'; |
| 34 | + public const OUT = 'out'; |
35 | 35 |
|
36 |
| - const STATUS_READY = 'ready'; |
37 |
| - const STATUS_STARTED = 'started'; |
38 |
| - const STATUS_TERMINATED = 'terminated'; |
| 36 | + public const STATUS_READY = 'ready'; |
| 37 | + public const STATUS_STARTED = 'started'; |
| 38 | + public const STATUS_TERMINATED = 'terminated'; |
39 | 39 |
|
40 |
| - const STDIN = 0; |
41 |
| - const STDOUT = 1; |
42 |
| - const STDERR = 2; |
| 40 | + public const STDIN = 0; |
| 41 | + public const STDOUT = 1; |
| 42 | + public const STDERR = 2; |
43 | 43 |
|
44 | 44 | // Timeout Precision in seconds.
|
45 |
| - const TIMEOUT_PRECISION = 0.2; |
| 45 | + public const TIMEOUT_PRECISION = 0.2; |
46 | 46 |
|
47 |
| - const ITER_NON_BLOCKING = 1; // By default, iterating over outputs is a blocking call, use this flag to make it non-blocking |
48 |
| - const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory |
49 |
| - const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating |
50 |
| - const ITER_SKIP_ERR = 8; // Use this flag to skip STDERR while iterating |
| 47 | + public const ITER_NON_BLOCKING = 1; // By default, iterating over outputs is a blocking call, use this flag to make it non-blocking |
| 48 | + public const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory |
| 49 | + public const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating |
| 50 | + public const ITER_SKIP_ERR = 8; // Use this flag to skip STDERR while iterating |
51 | 51 |
|
52 | 52 | private $callback;
|
53 | 53 | private $hasCallback = false;
|
|
0 commit comments