original_string: public function getTemplateFile($template) {
  		$templateFileClass = $this->_templateFileClass;		
  
  		$dwooTemplateFile = new $templateFileClass($template);
  		
  		if (!($dwooTemplateFile instanceof Dwoo_ITemplate)) {
  			throw new Dwoo_Exception("Custom templateFile class must be a subclass of Dwoo_ITemplate");
  		}
  
  		foreach ($this->_templateFileSettings as $method => $value) {
  			if (method_exists($dwooTemplateFile, 'set' . $method)) {
  				call_user_func(array($dwooTemplateFile, 'set' . $method), $value);
  			}
  		}
  		
  		return $dwooTemplateFile;
  	}
code: public function getTemplateFile($template) {
  		$templateFileClass = $this->_templateFileClass;		
  
  		$dwooTemplateFile = new $templateFileClass($template);
  		
  		if (!($dwooTemplateFile instanceof Dwoo_ITemplate)) {
  			throw new Dwoo_Exception("Custom templateFile class must be a subclass of Dwoo_ITemplate");
  		}
  
  		foreach ($this->_templateFileSettings as $method => $value) {
  			if (method_exists($dwooTemplateFile, 'set' . $method)) {
  				call_user_func(array($dwooTemplateFile, 'set' . $method), $value);
  			}
  		}
  		
  		return $dwooTemplateFile;
  	}
code_tokens: public function getTemplateFile ( $ template ) { $ templateFileClass = $ this -> _templateFileClass ; $ dwooTemplateFile = new $ templateFileClass ( $ template ) ; if ( ! ( $ dwooTemplateFile instanceof Dwoo_ITemplate ) ) { throw new Dwoo_Exception ( "Custom templateFile class must be a subclass of Dwoo_ITemplate" ) ; } foreach ( $ this -> _templateFileSettings as $ method => $ value ) { if ( method_exists ( $ dwooTemplateFile , 'set' . $ method ) ) { call_user_func ( array ( $ dwooTemplateFile , 'set' . $ method ) , $ value ) ; } } return $ dwooTemplateFile ; }
docstring: Initializes Dwoo_ITemplate type of class and sets properties from _templateFileSettings
  
  @param  string Template location
  @return Dwoo_ITemplate
docstring_tokens: Initializes Dwoo_ITemplate type of class and sets properties from _templateFileSettings