public function disableOutput()
    {
        if ($this->isRunning()) {
            throw new RuntimeException('Disabling output while the process is running is not possible.');
        }
        if (null !== $this->idleTimeout) {
            throw new LogicException('Output can not be disabled while an idle timeout is set.');
        }

        $this->outputDisabled = true;

        return $this;
    }
public function disableOutput()
    {
        if ($this->isRunning()) {
            throw new RuntimeException('Disabling output while the process is running is not possible.');
        }
        if (null !== $this->idleTimeout) {
            throw new LogicException('Output can not be disabled while an idle timeout is set.');
        }

        $this->outputDisabled = true;

        return $this;
    }
public function disableOutput ( ) { if ( $ this -> isRunning ( ) ) { throw new RuntimeException ( 'Disabling output while the process is running is not possible.' ) ; } if ( null !== $ this -> idleTimeout ) { throw new LogicException ( 'Output can not be disabled while an idle timeout is set.' ) ; } $ this -> outputDisabled = true ; return $ this ; }
Disables fetching output and error output from the underlying process.

@return $this

@throws RuntimeException In case the process is already running
@throws LogicException   if an idle timeout is set
Disables fetching output and error output from the underlying process .