original_string: public function setConfig(array $config)
      {
          foreach ($config as $type => $value) {
              $property = ucwords(str_replace('-', ' ', $type));
              $property = lcfirst(str_replace(' ', '', $property));
  
              $method = 'set' . ucfirst($property);
  
              if (method_exists($this, $method)) {
                  $this->{$method}($value);
              } else {
                  throw new \Parable\ORM\Exception(
                      "Tried to set non-existing property '{$property}' with value '{$value}' on " . get_class($this)
                  );
              }
          }
          return $this;
      }
code: public function setConfig(array $config)
      {
          foreach ($config as $type => $value) {
              $property = ucwords(str_replace('-', ' ', $type));
              $property = lcfirst(str_replace(' ', '', $property));
  
              $method = 'set' . ucfirst($property);
  
              if (method_exists($this, $method)) {
                  $this->{$method}($value);
              } else {
                  throw new \Parable\ORM\Exception(
                      "Tried to set non-existing property '{$property}' with value '{$value}' on " . get_class($this)
                  );
              }
          }
          return $this;
      }
code_tokens: public function setConfig ( array $ config ) { foreach ( $ config as $ type => $ value ) { $ property = ucwords ( str_replace ( '-' , ' ' , $ type ) ) ; $ property = lcfirst ( str_replace ( ' ' , '' , $ property ) ) ; $ method = 'set' . ucfirst ( $ property ) ; if ( method_exists ( $ this , $ method ) ) { $ this -> { $ method } ( $ value ) ; } else { throw new \ Parable \ ORM \ Exception ( "Tried to set non-existing property '{$property}' with value '{$value}' on " . get_class ( $ this ) ) ; } } return $ this ; }
docstring: Use an array to pass multiple config values at the same time. The values must correspond to setters
  defined on this class. If not, an exception is thrown.
  
  @param array $config
  
  @return $this
  @throws \Parable\ORM\Exception
docstring_tokens: Use an array to pass multiple config values at the same time . The values must correspond to setters defined on this class . If not an exception is thrown .