2017-09-14 19:34:18 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Process\Internal;
|
|
|
|
|
2017-09-17 17:58:05 +02:00
|
|
|
use Amp\Deferred;
|
|
|
|
use Amp\Process\ProcessInputStream;
|
|
|
|
use Amp\Process\ProcessOutputStream;
|
|
|
|
use Amp\Struct;
|
2017-09-14 19:34:18 +02:00
|
|
|
|
2017-09-17 17:58:05 +02:00
|
|
|
abstract class ProcessHandle {
|
|
|
|
use Struct;
|
|
|
|
|
|
|
|
/** @var ProcessOutputStream */
|
2017-09-14 19:34:18 +02:00
|
|
|
public $stdin;
|
|
|
|
|
2017-09-17 17:58:05 +02:00
|
|
|
/** @var ProcessInputStream */
|
2017-09-14 19:34:18 +02:00
|
|
|
public $stdout;
|
|
|
|
|
2017-09-17 17:58:05 +02:00
|
|
|
/** @var ProcessInputStream */
|
2017-09-14 19:34:18 +02:00
|
|
|
public $stderr;
|
|
|
|
|
2017-09-17 17:58:05 +02:00
|
|
|
/** @var Deferred */
|
|
|
|
public $pidDeferred;
|
2017-09-14 19:34:18 +02:00
|
|
|
|
2017-09-19 20:37:11 +02:00
|
|
|
/** @var int */
|
2017-09-14 19:34:18 +02:00
|
|
|
public $status = ProcessStatus::STARTING;
|
|
|
|
}
|