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;
			}
		}
	}
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;
			}
		}
	}
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 ; } } }
set parameters of the object
@param array $config
@throws InvalidArgumentException
set parameters of the object