public function getNextText()
	{
		$text = null;
		
		// get the element's next sibling element
		$next = $this->getNextSibling();
		
		// while the next sibling element exists and is not a text element
		while ($next !== null && ! $next instanceof \Jstewmc\Rtf\Element\Text) {
			$next = $next->getNextSibling();
		}
		
		// if a next text element exists
		if ($next !== null && $next instanceof \Jstewmc\Rtf\Element\Text) {
			$text = $next;
		}
		
		return $text;
	}
public function getNextText()
	{
		$text = null;
		
		// get the element's next sibling element
		$next = $this->getNextSibling();
		
		// while the next sibling element exists and is not a text element
		while ($next !== null && ! $next instanceof \Jstewmc\Rtf\Element\Text) {
			$next = $next->getNextSibling();
		}
		
		// if a next text element exists
		if ($next !== null && $next instanceof \Jstewmc\Rtf\Element\Text) {
			$text = $next;
		}
		
		return $text;
	}
public function getNextText ( ) { $ text = null ; // get the element's next sibling element $ next = $ this -> getNextSibling ( ) ; // while the next sibling element exists and is not a text element while ( $ next !== null && ! $ next instanceof \ Jstewmc \ Rtf \ Element \ Text ) { $ next = $ next -> getNextSibling ( ) ; } // if a next text element exists if ( $ next !== null && $ next instanceof \ Jstewmc \ Rtf \ Element \ Text ) { $ text = $ next ; } return $ text ; }
Returns this element's next text element or null if no next 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
Returns this element s next text element or null if no next text element exists