original_string: final public function imageAsDOMElement($as = null)
  	{
  		$dom   = new \DOMDocument('1.0', 'UTF-8');
  		$image = $dom->appendChild($dom->createElement('img'));
  		$image->setAttribute('height', $this->imageHeight());
  		$image->setAttribute('width', $this->imageWidth());
  		$image->setAttribute('alt', $this->alt_text);
  		$image->setAttribute('src', $this->dataURI($as));
  		return $image;
  	}
code: final public function imageAsDOMElement($as = null)
  	{
  		$dom   = new \DOMDocument('1.0', 'UTF-8');
  		$image = $dom->appendChild($dom->createElement('img'));
  		$image->setAttribute('height', $this->imageHeight());
  		$image->setAttribute('width', $this->imageWidth());
  		$image->setAttribute('alt', $this->alt_text);
  		$image->setAttribute('src', $this->dataURI($as));
  		return $image;
  	}
code_tokens: final public function imageAsDOMElement ( $ as = null ) { $ dom = new \ DOMDocument ( '1.0' , 'UTF-8' ) ; $ image = $ dom -> appendChild ( $ dom -> createElement ( 'img' ) ) ; $ image -> setAttribute ( 'height' , $ this -> imageHeight ( ) ) ; $ image -> setAttribute ( 'width' , $ this -> imageWidth ( ) ) ; $ image -> setAttribute ( 'alt' , $ this -> alt_text ) ; $ image -> setAttribute ( 'src' , $ this -> dataURI ( $ as ) ) ; return $ image ; }
docstring: Create a DOMElement containing attributes of the image
  
  @param void
  @return DOMElement
  @uses DOMDocument
docstring_tokens: Create a DOMElement containing attributes of the image