protected function configure(array $config = [])
    {
        foreach ($config as $key => $value) {
            $method = 'set' . $key;
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
        }
    }
protected function configure(array $config = [])
    {
        foreach ($config as $key => $value) {
            $method = 'set' . $key;
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
        }
    }
protected function configure ( array $ config = [ ] ) { foreach ( $ config as $ key => $ value ) { $ method = 'set' . $ key ; if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( $ value ) ; } } }
Configures the generator instance.
@param array $config generator configuration
Configures the generator instance .