private function composeProcess(string $command): Process
    {
        if ($this->process === null) {
            $this->process = new Process([$command]);
        }

        $this->process->inheritEnvironmentVariables();
        $this->process->setTimeout($this->timeout);
        $this->process->setCommandLine($command);

        return $this->process;
    }
private function composeProcess(string $command): Process
    {
        if ($this->process === null) {
            $this->process = new Process([$command]);
        }

        $this->process->inheritEnvironmentVariables();
        $this->process->setTimeout($this->timeout);
        $this->process->setCommandLine($command);

        return $this->process;
    }
private function composeProcess ( string $ command ) : Process { if ( $ this -> process === null ) { $ this -> process = new Process ( [ $ command ] ) ; } $ this -> process -> inheritEnvironmentVariables ( ) ; $ this -> process -> setTimeout ( $ this -> timeout ) ; $ this -> process -> setCommandLine ( $ command ) ; return $ this -> process ; }
Compose a process with given command. If no process is given in current instance a new one will be created.

@param string $command

@return Process

@since 2.0
Compose a process with given command . If no process is given in current instance a new one will be created .