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