public function set_config($key, $value) {
        if ($this->config === null) {
            $this->config = (object) array();
        }
        $this->config->$key = $value;
        $this->dirty = true;

        return $this;
    }
public function set_config($key, $value) {
        if ($this->config === null) {
            $this->config = (object) array();
        }
        $this->config->$key = $value;
        $this->dirty = true;

        return $this;
    }
public function set_config ( $ key , $ value ) { if ( $ this -> config === null ) { $ this -> config = ( object ) array ( ) ; } $ this -> config -> $ key = $ value ; $ this -> dirty = true ; return $ this ; }
Set the configuration item as specified.

@param   string      $key        The configuration key to set.
@param   mixed       $value      The new value for the configuration item.
@return  $this
Set the configuration item as specified .