original_string: public function setExtension($ext)
  	{
  		$this->extension = $ext;
  
  		if(!$this->extensionMap->has($ext))
  		{
  			throw new Exceptions\InvalidExtension($ext);
  		}
  
  		return $this;
  	}
code: public function setExtension($ext)
  	{
  		$this->extension = $ext;
  
  		if(!$this->extensionMap->has($ext))
  		{
  			throw new Exceptions\InvalidExtension($ext);
  		}
  
  		return $this;
  	}
code_tokens: public function setExtension ( $ ext ) { $ this -> extension = $ ext ; if ( ! $ this -> extensionMap -> has ( $ ext ) ) { throw new Exceptions \ InvalidExtension ( $ ext ) ; } return $ this ; }
docstring: Sets the extension
  
  @param String $ext
  @return Converter
  @author Dan Cox
docstring_tokens: Sets the extension