nextChild() public method

Attempts to get the next child.
public nextChild ( integer $id ) : AbstractNode
$id integer
return AbstractNode
コード例 #1
0
 /**
  * Attempts to get the next sibling.
  *
  * @return AbstractNode
  * @throws ParentNotFoundException
  */
 public function nextSibling()
 {
     if (is_null($this->parent)) {
         throw new ParentNotFoundException('Parent is not set for this node.');
     }
     return $this->parent->nextChild($this->id);
 }