Icicle\Concurrent\Process\Process::getStdOut PHP Метод

getStdOut() публичный Метод

Gets the process output stream (STDOUT).
public getStdOut ( ) : ReadableStream
Результат ReadableStream
    public function getStdOut() : ReadableStream
    {
        if (null === $this->stdout) {
            throw new StatusError('The process has not been started.');
        }
        return $this->stdout;
    }

Usage Example

Пример #1
0
    /**
     * {@inheritdoc}
     */
    public function start()
    {
        $this->process->start();

        $this->channel = new Channel($this->process->getStdOut(), $this->process->getStdIn());
    }