original_string: public function setConfig(array $configs)
  	{
  		foreach($configs as $config_key => $config_value)
  		{
  			if( property_exists(get_class($this), $config_key) )
  			{
  				$this->$config_key = $config_value;
  			}
  			else
  			{
  				throw new \InvalidArgumentException;
  			}
  		}
  	}
code: public function setConfig(array $configs)
  	{
  		foreach($configs as $config_key => $config_value)
  		{
  			if( property_exists(get_class($this), $config_key) )
  			{
  				$this->$config_key = $config_value;
  			}
  			else
  			{
  				throw new \InvalidArgumentException;
  			}
  		}
  	}
code_tokens: public function setConfig ( array $ configs ) { foreach ( $ configs as $ config_key => $ config_value ) { if ( property_exists ( get_class ( $ this ) , $ config_key ) ) { $ this -> $ config_key = $ config_value ; } else { throw new \ InvalidArgumentException ; } } }
docstring: set parameters of the object
  @param array $config
  @throws InvalidArgumentException
docstring_tokens: set parameters of the object