private function ensureProcessIsStarted(): void
    {
        if (is_resource($this->process) === false) {
            $this->startProcess();

            $this->handleStartupErrors();
        }
    }
private function ensureProcessIsStarted(): void
    {
        if (is_resource($this->process) === false) {
            $this->startProcess();

            $this->handleStartupErrors();
        }
    }
private function ensureProcessIsStarted ( ) : void { if ( is_resource ( $ this -> process ) === false ) { $ this -> startProcess ( ) ; $ this -> handleStartupErrors ( ) ; } }
Makes sure that the process is actually started, and if not, starts it,
assigns the stream pipes, and handles startup errors, if any.
Makes sure that the process is actually started and if not starts it assigns the stream pipes and handles startup errors if any .