1: <?php
2: namespace Sphp\tools{
3: /**
4: * Experimental:- Create a Child process with PHP
5: */
6: class ChildProcess {
7: /**
8: * Constructor.
9: *
10: * @param string $cmd Command line to run
11: * @param string $cwd Current working directory or null to inherit
12: * @param array $env Environment variables or null to inherit
13: * @param array $options Options for proc_open()
14: * @throws RuntimeException When proc_open() is not installed
15: */
16: public function write($msg) {}
17: public function read() {}
18: public function readErr() {}
19: public function run() {}
20: public function closeProcess() {}
21: public function getStatus() {}
22: }
23: }
24: