protected function getProcessBuilder(array $builderArguments = null)
    {
        $builder = new ProcessBuilder($builderArguments);

        //check for options
        if (isset($this->config['options'])) {
           foreach ($this->config['options'] as $key => $val) {
               $builder->setOption($key, $val);
           }
        }

        $builder->setTimeout($this->config['timeout']);

        return $builder;
    }
protected function getProcessBuilder(array $builderArguments = null)
    {
        $builder = new ProcessBuilder($builderArguments);

        //check for options
        if (isset($this->config['options'])) {
           foreach ($this->config['options'] as $key => $val) {
               $builder->setOption($key, $val);
           }
        }

        $builder->setTimeout($this->config['timeout']);

        return $builder;
    }
protected function getProcessBuilder ( array $ builderArguments = null ) { $ builder = new ProcessBuilder ( $ builderArguments ) ; //check for options if ( isset ( $ this -> config [ 'options' ] ) ) { foreach ( $ this -> config [ 'options' ] as $ key => $ val ) { $ builder -> setOption ( $ key , $ val ) ; } } $ builder -> setTimeout ( $ this -> config [ 'timeout' ] ) ; return $ builder ; }
Return a new instance of a pre-configured process builder.

@param  array          $builderArguments - array of arguments to pass to ProcessBuilder when it's instantiated
@return ProcessBuilder
Return a new instance of a pre - configured process builder .