protected function buildProcess()
    {
        if (!\count($this->arguments)) {
            throw new LogicException('You must add command arguments before the process can build.');
        }

        $process = new Process($this->arguments, $this->workingDirectory);

        $process->setCommandLine($process->getCommandLine());

        return $process;
    }
protected function buildProcess()
    {
        if (!\count($this->arguments)) {
            throw new LogicException('You must add command arguments before the process can build.');
        }

        $process = new Process($this->arguments, $this->workingDirectory);

        $process->setCommandLine($process->getCommandLine());

        return $process;
    }
protected function buildProcess ( ) { if ( ! \ count ( $ this -> arguments ) ) { throw new LogicException ( 'You must add command arguments before the process can build.' ) ; } $ process = new Process ( $ this -> arguments , $ this -> workingDirectory ) ; $ process -> setCommandLine ( $ process -> getCommandLine ( ) ) ; return $ process ; }
Build the the command line process.

@return Process

@throws LogicException In case no arguments have been provided.
Build the the command line process .