public function getNextSibling()
	{
		$next = null;
		
		// if this element has an index
		if (false !== ($index = $this->getIndex())) {
			// if this element has a next sibling
			if ($this->parent->hasChild($index + 1)) {
				$next = $this->parent->getChild($index + 1);
			}
		}
			
		return $next;
	}
public function getNextSibling()
	{
		$next = null;
		
		// if this element has an index
		if (false !== ($index = $this->getIndex())) {
			// if this element has a next sibling
			if ($this->parent->hasChild($index + 1)) {
				$next = $this->parent->getChild($index + 1);
			}
		}
			
		return $next;
	}
public function getNextSibling ( ) { $ next = null ; // if this element has an index if ( false !== ( $ index = $ this -> getIndex ( ) ) ) { // if this element has a next sibling if ( $ this -> parent -> hasChild ( $ index + 1 ) ) { $ next = $ this -> parent -> getChild ( $ index + 1 ) ; } } return $ next ; }
Returns this element's next sibling or null if no sibling exists

@return  Jstewmc\Rtf\Element\Element|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
@since  0.1.0
Returns this element s next sibling or null if no sibling exists