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");
    	}

    }
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");
    	}

    }
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" ) ; } }
A settter. it get an array and update or add new configuration value to object
@param array $config configuration value
@throws Exception
A settter . it get an array and update or add new configuration value to object