original_string: public function initialize()
  	{
  		//throw exception if no database type has been set
  		if( ! $this->type )
  		{
  			//Throw exception
  			throw new DbException("Invalid database type provided");
  			
  		}
  
  		//check the type of  database provided returning instance
  		//set the parameter to check in switch clause
  		switch ($this->type ) 
  		{
  			case 'mysql':
  
  				return new MySQL($this->options);
  
  				break;
  			
  			default:
  
  				throw new DbException("Valid database type provided");
  				
  
  				break;
  		}
  
  	}
code: public function initialize()
  	{
  		//throw exception if no database type has been set
  		if( ! $this->type )
  		{
  			//Throw exception
  			throw new DbException("Invalid database type provided");
  			
  		}
  
  		//check the type of  database provided returning instance
  		//set the parameter to check in switch clause
  		switch ($this->type ) 
  		{
  			case 'mysql':
  
  				return new MySQL($this->options);
  
  				break;
  			
  			default:
  
  				throw new DbException("Valid database type provided");
  				
  
  				break;
  		}
  
  	}
code_tokens: public function initialize ( ) { //throw exception if no database type has been set if ( ! $ this -> type ) { //Throw exception throw new DbException ( "Invalid database type provided" ) ; } //check the type of  database provided returning instance //set the parameter to check in switch clause switch ( $ this -> type ) { case 'mysql' : return new MySQL ( $ this -> options ) ; break ; default : throw new DbException ( "Valid database type provided" ) ; break ; } }
docstring: This method initializes a database connection
  
  @param null
  @return object Instance of this database connection
  @throws DbException  If the database type provided is not defined for this system
docstring_tokens: This method initializes a database connection