original_string: public function getPreviousText()
  	{
  		$text = null;
  		
  		// get the element's preivous sibling element
  		$previous = $this->getPreviousSibling();
  		
  		// while the previous sibling element exists and is not a text element
  		while ($previous !== null && ! $previous instanceof \Jstewmc\Rtf\Element\Text) {
  			$previous = $previous->getPreviousSibling();
  		}
  		
  		// if a previous text element exists
  		if ($previous !== null && $previous instanceof \Jstewmc\Rtf\Element\Text) {
  			$text = $previous;
  		}
  		
  		return $text;
  	}
code: public function getPreviousText()
  	{
  		$text = null;
  		
  		// get the element's preivous sibling element
  		$previous = $this->getPreviousSibling();
  		
  		// while the previous sibling element exists and is not a text element
  		while ($previous !== null && ! $previous instanceof \Jstewmc\Rtf\Element\Text) {
  			$previous = $previous->getPreviousSibling();
  		}
  		
  		// if a previous text element exists
  		if ($previous !== null && $previous instanceof \Jstewmc\Rtf\Element\Text) {
  			$text = $previous;
  		}
  		
  		return $text;
  	}
code_tokens: public function getPreviousText ( ) { $ text = null ; // get the element's preivous sibling element $ previous = $ this -> getPreviousSibling ( ) ; // while the previous sibling element exists and is not a text element while ( $ previous !== null && ! $ previous instanceof \ Jstewmc \ Rtf \ Element \ Text ) { $ previous = $ previous -> getPreviousSibling ( ) ; } // if a previous text element exists if ( $ previous !== null && $ previous instanceof \ Jstewmc \ Rtf \ Element \ Text ) { $ text = $ previous ; } return $ text ; }
docstring: Returns this element's previous text element or null if not previous text
  element exists
  
  @return  Jstewmc\Rtf\Element\Text|null
  @throws  BadMethodCallException  if the element doesn't have a parent
  @throws  BadMethodCallException  if the element's parent doesn't have children
  @throws  BadMethodCallException  if the element is not a child of its parent
docstring_tokens: Returns this element s previous text element or null if not previous text element exists