/**
  * Get patch for columns.
  *
  * @since 2.0
  *
  * @param array $params
  *
  * @return array
  */
 protected function patch(array $params)
 {
     $grammar = $this->query->getGrammar();
     $columns = array();
     foreach ([$this->model->getLftName(), $this->model->getRgtName()] as $col) {
         $columns[$col] = $this->columnPatch($grammar->wrap($col), $params);
     }
     return $columns;
 }
 /**
  * Get whether the node is an ancestor of other node, including immediate parent.
  *
  * @param Node $other
  *
  * @return bool
  */
 public function isAncestorOf(Node $other)
 {
     return $other->isDescendantOf($this);
 }