Icicle\Concurrent\Process\Process::getStdIn PHP Method

getStdIn() public method

Gets the process input stream (STDIN).
public getStdIn ( ) : WritableStream
return WritableStream
    public function getStdIn() : WritableStream
    {
        if (null === $this->stdin) {
            throw new StatusError('The process has not been started.');
        }
        return $this->stdin;
    }

Usage Example

Exemplo n.º 1
0
    /**
     * {@inheritdoc}
     */
    public function start()
    {
        $this->process->start();

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