original_string: public function setConfig($config)
      {
          $configObject = $this->getConfig();
  
          if (is_object($config)) {
              $config = get_object_vars($config);
          }
  
          foreach ((array)$config as $key => $value) {
              $configObject->$key = $value;
          }
  
          return $this;
      }
code: public function setConfig($config)
      {
          $configObject = $this->getConfig();
  
          if (is_object($config)) {
              $config = get_object_vars($config);
          }
  
          foreach ((array)$config as $key => $value) {
              $configObject->$key = $value;
          }
  
          return $this;
      }
code_tokens: public function setConfig ( $ config ) { $ configObject = $ this -> getConfig ( ) ; if ( is_object ( $ config ) ) { $ config = get_object_vars ( $ config ) ; } foreach ( ( array ) $ config as $ key => $ value ) { $ configObject -> $ key = $ value ; } return $ this ; }
docstring: Sets new configuration for the loader
  
  @param ConfigInterface|array $config
  @return $this
docstring_tokens: Sets new configuration for the loader