protected function insertAfterChild(Node $child, Node $node) {
    $this->childCount++;
    $node->parent = $this;
    if ($child->next === NULL) {
      $this->tail = $node;
    }
    else {
      $child->next->previous = $node;
    }
    $node->previous = $child;
    $node->next = $child->next;
    $child->next = $node;
    return $this;
  }
protected function insertAfterChild(Node $child, Node $node) {
    $this->childCount++;
    $node->parent = $this;
    if ($child->next === NULL) {
      $this->tail = $node;
    }
    else {
      $child->next->previous = $node;
    }
    $node->previous = $child;
    $node->next = $child->next;
    $child->next = $node;
    return $this;
  }
protected function insertAfterChild ( Node $ child , Node $ node ) { $ this -> childCount ++ ; $ node -> parent = $ this ; if ( $ child -> next === NULL ) { $ this -> tail = $ node ; } else { $ child -> next -> previous = $ node ; } $ node -> previous = $ child ; $ node -> next = $ child -> next ; $ child -> next = $ node ; return $ this ; }
Insert a node after a child.
@param Node $child
@param Node $node
@return $this
Insert a node after a child .