original_string: public function setConfig($config = array()) 
      { 
  
      	if(is_array($config) ) {
  
      		if(!empty($config)) {
      			foreach($config as $key=>$value) {
  
      				$this->_config[$key] = $value;
      			}
      		}
  
       	} else {
      		
      		throw new Exception( "Invalid parameter");
      	}
  
      }
code: public function setConfig($config = array()) 
      { 
  
      	if(is_array($config) ) {
  
      		if(!empty($config)) {
      			foreach($config as $key=>$value) {
  
      				$this->_config[$key] = $value;
      			}
      		}
  
       	} else {
      		
      		throw new Exception( "Invalid parameter");
      	}
  
      }
code_tokens: public function setConfig ( $ config = array ( ) ) { if ( is_array ( $ config ) ) { if ( ! empty ( $ config ) ) { foreach ( $ config as $ key => $ value ) { $ this -> _config [ $ key ] = $ value ; } } } else { throw new Exception ( "Invalid parameter" ) ; } }
docstring: A settter. it get an array and update or add new configuration value to object
  @param array $config configuration value
  @throws Exception
docstring_tokens: A settter . it get an array and update or add new configuration value to object